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