[CMAKE]
[reactos.git] / dll / win32 / ntlanman / CMakeLists.txt
1
2 set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
3
4 add_definitions(-DUNICODE -D_UNICODE)
5
6 spec2def(ntlanman ${CMAKE_CURRENT_SOURCE_DIR}/ntlanman.spec ${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def)
7
8 add_library(ntlanman SHARED ntlanman.c ntlanman.rc)
9
10 set_target_properties(ntlanman PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
11
12 target_link_libraries(ntlanman
13 ${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def
14 wine
15 mingw_common
16 -lnetapi32)
17
18 add_dependencies(ntlanman ntlanman_def psdk)