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