Sync with trunk r58151 to bring the latest changes from Amine and Timo.
[reactos.git] / 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 spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB)
11
12 list(APPEND SOURCE
13 base64.c
14 cert.c
15 chain.c
16 collectionstore.c
17 context.c
18 crl.c
19 ctl.c
20 decode.c
21 encode.c
22 filestore.c
23 main.c
24 message.c
25 msg.c
26 object.c
27 oid.c
28 proplist.c
29 protectdata.c
30 provstore.c
31 regstore.c
32 rootstore.c
33 serialize.c
34 sip.c
35 store.c
36 str.c
37 ${CMAKE_CURRENT_BINARY_DIR}/crypt32_stubs.c
38 ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
39
40 add_library(crypt32 SHARED ${SOURCE} crypt32.rc)
41
42 if(NOT MSVC)
43 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
44 #allow_warnings(crypt32)
45 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
46 endif()
47
48 set_module_type(crypt32 win32dll)
49 target_link_libraries(crypt32 wine ${PSEH_LIB} oldnames)
50 add_importlibs(crypt32 user32 advapi32 msvcrt kernel32 ntdll)
51 add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all)