b00ef45ed70997a579c8594daec490fd00c77d4c
[reactos.git] / 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}/sdk/include/reactos/wine)
11 spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB)
12
13 if(MSVC)
14 # error C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
15 replace_compile_flags("/we4312" " ")
16 endif()
17
18 list(APPEND SOURCE
19 base64.c
20 cert.c
21 chain.c
22 collectionstore.c
23 context.c
24 crl.c
25 ctl.c
26 decode.c
27 encode.c
28 filestore.c
29 main.c
30 message.c
31 msg.c
32 object.c
33 oid.c
34 proplist.c
35 protectdata.c
36 provstore.c
37 regstore.c
38 rootstore.c
39 serialize.c
40 sip.c
41 store.c
42 str.c
43 precomp.h)
44
45 add_library(crypt32 MODULE
46 ${SOURCE}
47 crypt32.rc
48 ${CMAKE_CURRENT_BINARY_DIR}/crypt32_stubs.c
49 ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
50
51 set_module_type(crypt32 win32dll)
52 target_link_libraries(crypt32 wine ${PSEH_LIB} oldnames)
53 add_delay_importlibs(crypt32 cryptnet)
54 add_importlibs(crypt32 bcrypt user32 advapi32 advapi32_vista msvcrt kernel32 ntdll)
55 add_pch(crypt32 precomp.h SOURCE)
56 add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all)