597419d3c330f90fd48162dd8cba142ab90209a6
[reactos.git] / dll / win32 / crypt32 / CMakeLists.txt
1
2 set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
3
4 add_definitions(-D__WINESRC__)
5 add_definitions(-D_DLL -D__USE_CRTIMP)
6 add_definitions(-D_WINE)
7
8 remove_definitions(-D_WIN32_WINNT=0x502)
9 add_definitions(-D_WIN32_WINNT=0x600)
10
11
12 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
13
14 spec2def(crypt32 ${CMAKE_CURRENT_SOURCE_DIR}/crypt32.spec ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
15
16 add_library(crypt32 SHARED
17 base64.c
18 cert.c
19 chain.c
20 collectionstore.c
21 context.c
22 crl.c
23 ctl.c
24 decode.c
25 encode.c
26 filestore.c
27 main.c
28 message.c
29 msg.c
30 object.c
31 oid.c
32 proplist.c
33 protectdata.c
34 provstore.c
35 regstore.c
36 rootstore.c
37 serialize.c
38 sip.c
39 store.c
40 str.c
41 crypt32.rc
42 version.rc)
43
44 set_target_properties(crypt32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
45
46 target_link_libraries(crypt32
47 ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def
48 wine
49 pseh
50 mingw_common
51 -luser32
52 -ladvapi32
53 -lmsvcrt)
54
55 add_dependencies(crypt32 crypt32_def psdk)