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