[CMAKE]
[reactos.git] / dll / win32 / aclui / 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 add_definitions(-DSUPPORT_UXTHEME)
6
7 file(GLOB_RECURSE SOURCE *.c)
8
9 spec2def(aclui ${CMAKE_CURRENT_SOURCE_DIR}/aclui.spec ${CMAKE_CURRENT_BINARY_DIR}/aclui.def)
10
11 add_library(aclui SHARED
12 ${SOURCE}
13 ${CMAKE_CURRENT_SOURCE_DIR}/aclui.rc
14 ${CMAKE_CURRENT_BINARY_DIR}/aclui_precomp.h.gch)
15
16 set_target_properties(aclui PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
17
18 target_link_libraries(aclui
19 ${CMAKE_CURRENT_BINARY_DIR}/aclui.def
20 ${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a
21 ${REACTOS_SOURCE_DIR}/dll/win32/gdi32/libgdi32.a
22 -lcomctl32
23 -lole32
24 -loleaut32
25 ${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a
26 -luxtheme
27 ${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a
28 ${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
29
30 add_pch(aclui ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
31 add_dependencies(aclui aclui_def psdk)