4d535e90e0627a88104c8e4e5a24a35ef08d268b
[reactos.git] / 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.def)
45
46 add_library(crypt32 SHARED ${SOURCE})
47
48 set_module_type(crypt32 win32dll)
49
50 target_link_libraries(crypt32
51 wine
52 ${PSEH_LIB}
53 oldnames)
54
55 add_importlibs(crypt32 user32 advapi32 msvcrt kernel32 ntdll)
56
57 add_cab_target(crypt32 1)
58 add_importlib_target(crypt32.spec)