[CMAKE]
[reactos.git] / reactos / dll / win32 / crypt32 / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_DLL
5 -D__USE_CRTIMP
6 -D_WINE)
7
8 remove_definitions(-D_WIN32_WINNT=0x502)
9 add_definitions(-D_WIN32_WINNT=0x600)
10
11 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
12
13 set_rc_compiler()
14
15 spec2def(crypt32.dll crypt32.spec)
16
17 list(APPEND SOURCE
18 base64.c
19 cert.c
20 chain.c
21 collectionstore.c
22 context.c
23 crl.c
24 ctl.c
25 decode.c
26 encode.c
27 filestore.c
28 main.c
29 message.c
30 msg.c
31 object.c
32 oid.c
33 proplist.c
34 protectdata.c
35 provstore.c
36 regstore.c
37 rootstore.c
38 serialize.c
39 sip.c
40 store.c
41 str.c
42 crypt32.rc
43 version.rc
44 ${CMAKE_CURRENT_BINARY_DIR}/crypt32_stubs.c
45 ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
46
47 add_library(crypt32 SHARED ${SOURCE})
48
49 set_module_type(crypt32 win32dll)
50
51 target_link_libraries(crypt32
52 wine
53 ${PSEH_LIB}
54 oldnames)
55
56 add_importlibs(crypt32 user32 advapi32 msvcrt kernel32 ntdll)
57
58 add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all)
59 add_importlib_target(crypt32.spec)