sync with trunk r49322
[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
45 add_library(advapi32 SHARED
46 ${CMAKE_CURRENT_BINARY_DIR}/advapi32_advapi32.h.gch
47 ${SOURCE})
48
49 set_module_type(advapi32 win32dll)
50
51 target_link_libraries(advapi32
52 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.def
53 svcctl_client
54 lsa_client
55 eventlogrpc_client
56 wine
57 pseh)
58
59 add_importlibs(advapi32 rpcrt4 kernel32 ntdll)
60
61 add_pch(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.h ${SOURCE})
62 add_livecd_target(advapi32 reactos/system32)