[CMAKE]
[reactos.git] / dll / win32 / modemui / 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>")
3
4 add_definitions(-DUNICODE -D_UNICODE)
5
6 spec2def(modemui ${CMAKE_CURRENT_SOURCE_DIR}/modemui.spec ${CMAKE_CURRENT_BINARY_DIR}/modemui.def)
7
8 add_library(modemui SHARED modemui.c modemui.rc)
9
10 set_target_properties(modemui PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
11
12 target_link_libraries(modemui
13 ${CMAKE_CURRENT_BINARY_DIR}/modemui.def
14 ${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a)
15
16 add_dependencies(modemui modemui_def psdk)