xref: /reactos/dll/win32/crypt32/CMakeLists.txt (revision 177ae91b)
1
2remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
3add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
4
5add_definitions(
6    -D__WINESRC__
7    -D__ROS_LONG64__
8    -D_WINE
9    -D_CRYPT32_)
10
11include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
12spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB)
13
14if(MSVC)
15    # error C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
16    replace_compile_flags("/we4312" " ")
17endif()
18
19list(APPEND SOURCE
20    base64.c
21    cert.c
22    chain.c
23    collectionstore.c
24    context.c
25    crl.c
26    ctl.c
27    decode.c
28    encode.c
29    filestore.c
30    main.c
31    message.c
32    msg.c
33    object.c
34    oid.c
35    proplist.c
36    protectdata.c
37    provstore.c
38    regstore.c
39    rootstore.c
40    serialize.c
41    sip.c
42    store.c
43    str.c
44    precomp.h)
45
46add_library(crypt32 MODULE
47    ${SOURCE}
48    crypt32.rc
49    ${CMAKE_CURRENT_BINARY_DIR}/crypt32_stubs.c
50    ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
51
52set_module_type(crypt32 win32dll)
53target_link_libraries(crypt32 wine ${PSEH_LIB} oldnames)
54add_delay_importlibs(crypt32 cryptnet)
55add_importlibs(crypt32 bcrypt user32 advapi32 advapi32_vista msvcrt kernel32 ntdll)
56add_pch(crypt32 precomp.h SOURCE)
57add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all)
58