Move all temporary import libs to a single directory.
[reactos.git] / dll / win32 / advapi32 / 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(-D_ADVAPI32_)
6
7 remove_definitions(-D_WIN32_WINNT=0x502)
8 add_definitions(-D_WIN32_WINNT=0x600)
9
10 include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
11
12 file(GLOB_RECURSE SOURCE *.c)
13
14 set_source_files_properties(${REACTOS_BINARY_DIR}/include/reactos/idl/svcctl_c.c
15 ${REACTOS_BINARY_DIR}/include/reactos/idl/lsa_c.c
16 ${REACTOS_BINARY_DIR}/include/reactos/idl/eventlogrpc_c.c
17 PROPERTIES GENERATED TRUE)
18
19 add_library(advapi32 SHARED
20 ${SOURCE}
21 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.rc
22 ${CMAKE_CURRENT_BINARY_DIR}/advapi32_advapi32.h.gch
23 ${REACTOS_BINARY_DIR}/include/reactos/idl/svcctl_c.c
24 ${REACTOS_BINARY_DIR}/include/reactos/idl/lsa_c.c
25 ${REACTOS_BINARY_DIR}/include/reactos/idl/eventlogrpc_c.c)
26
27 set_target_properties(advapi32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
28
29 target_link_libraries(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.def
30 wine
31 pseh
32 rpcrt4
33 -lkernel32
34 -lntdll)
35
36 add_pch(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.h ${SOURCE})
37 add_dependencies(advapi32 svcctl_client lsa_client eventlogrpc_client version)