[CMAKE]
[reactos.git] / dll / win32 / compstui / 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(-D__WINESRC__)
5
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 spec2def(compstui ${CMAKE_CURRENT_SOURCE_DIR}/compstui.spec ${CMAKE_CURRENT_BINARY_DIR}/compstui.def)
9
10 add_library(compstui SHARED compstui_main.c)
11
12 set_target_properties(compstui PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
13
14 target_link_libraries(compstui
15 ${CMAKE_CURRENT_BINARY_DIR}/compstui.def
16 wine
17 mingw_common)
18
19 add_dependencies(compstui compstui_def psdk)