[CMAKE]
[reactos.git] / dll / win32 / imagehlp / CMakeLists.txt
1
2 add_definitions(-D_DLL -D__USE_CRTIMP)
3 add_definitions(-D_IMAGEHLP_SOURCE_)
4
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
6
7 spec2def(imagehlp ${CMAKE_CURRENT_SOURCE_DIR}/imagehlp.spec ${CMAKE_CURRENT_BINARY_DIR}/imagehlp.def)
8
9 list(APPEND SOURCE
10 access.c
11 imagehlp_main.c
12 integrity.c
13 modify.c
14 imagehlp.rc)
15
16 add_library(imagehlp SHARED
17 ${CMAKE_CURRENT_BINARY_DIR}/imagehlp_precomp.h.gch
18 ${SOURCE})
19
20 set_module_type(imagehlp win32dll)
21
22 target_link_libraries(imagehlp
23 ${CMAKE_CURRENT_BINARY_DIR}/imagehlp.def
24 wine)
25
26 add_importlibs(imagehlp dbghelp kernel32 ntdll)
27 add_pch(imagehlp ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
28 add_dependencies(imagehlp imagehlp_def)
29 add_livecd_target(imagehlp reactos/system32)