Support building with cmake.

This commit is contained in:
Joachim Bauch
2015-08-22 00:32:13 +02:00
parent 70c4977019
commit 8c3d253325
5 changed files with 100 additions and 6 deletions
+12
View File
@@ -0,0 +1,12 @@
set (sources
SampleDLL.cpp
SampleDLL.h
SampleDLL.rc
)
add_definitions (-DSAMPLEDLL_EXPORTS)
add_library (SampleDLL MODULE ${sources})
if (NOT MSVC)
set_target_properties ("SampleDLL" PROPERTIES PREFIX "")
set_target_properties ("SampleDLL" PROPERTIES SUFFIX ".dll")
endif ()