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