[CMAKE]
[reactos.git] / dll / win32 / samlib / CMakeLists.txt
1
2
3
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 add_definitions(-D__WINESRC__)
7
8 spec2def(samlib ${CMAKE_CURRENT_SOURCE_DIR}/samlib.spec ${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
9
10 add_library(samlib SHARED dllmain.c samlib.c samlib.rc)
11
12 set_target_properties(samlib PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
13
14 target_link_libraries(samlib
15 ${CMAKE_CURRENT_BINARY_DIR}/samlib.def
16 -ladvapi32
17 mingw_common)
18
19 add_dependencies(samlib samlib_def psdk)