[CMAKE]
[reactos.git] / dll / win32 / advapi32 / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(-D_ADVAPI32_)
5
6 remove_definitions(-D_WIN32_WINNT=0x502)
7 add_definitions(-D_WIN32_WINNT=0x600)
8
9 include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
10
11 list(APPEND SOURCE
12 crypt/crypt.c
13 crypt/crypt_arc4.c
14 crypt/crypt_des.c
15 crypt/crypt_lmhash.c
16 crypt/crypt_md4.c
17 crypt/crypt_md5.c
18 crypt/crypt_sha.c
19 misc/dllmain.c
20 misc/efs.c
21 misc/hwprofiles.c
22 misc/logon.c
23 misc/msi.c
24 misc/shutdown.c
25 misc/sysfunc.c
26 misc/trace.c
27 reg/reg.c
28 sec/ac.c
29 sec/audit.c
30 sec/cred.c
31 sec/lsa.c
32 sec/misc.c
33 sec/sec.c
34 sec/sid.c
35 sec/trustee.c
36 service/eventlog.c
37 service/rpc.c
38 service/scm.c
39 service/sctrl.c
40 token/privilege.c
41 token/token.c
42 advapi32_stubs.c
43 advapi32.rc
44 advapi32.def)
45
46 if(NOT MSVC)
47 set_source_files_properties(advapi32.def PROPERTIES EXTERNAL_OBJECT TRUE)
48 endif()
49
50 add_library(advapi32 SHARED
51 ${CMAKE_CURRENT_BINARY_DIR}/advapi32_advapi32.h.gch
52 ${SOURCE})
53
54 set_module_type(advapi32 win32dll)
55
56 target_link_libraries(advapi32
57 svcctl_client
58 lsa_client
59 eventlogrpc_client
60 wine
61 ${PSEH_LIB})
62
63 add_importlibs(advapi32 rpcrt4 kernel32 ntdll)
64
65 add_pch(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.h ${SOURCE})
66 add_cab_target(advapi32 1)