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