xref: /reactos/dll/win32/imagehlp/CMakeLists.txt (revision 9393fc32)
1
2add_definitions(-D_IMAGEHLP_SOURCE_)
3include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4spec2def(imagehlp.dll imagehlp.spec ADD_IMPORTLIB)
5
6list(APPEND SOURCE
7    access.c
8    imagehlp_main.c
9    integrity.c
10    modify.c)
11
12list(APPEND PCH_SKIP_SOURCE
13    ${CMAKE_CURRENT_BINARY_DIR}/imagehlp_stubs.c)
14
15add_library(imagehlp MODULE
16    ${SOURCE}
17    ${PCH_SKIP_SOURCE}
18    imagehlp.rc
19    ${CMAKE_CURRENT_BINARY_DIR}/imagehlp.def)
20
21set_module_type(imagehlp win32dll)
22target_link_libraries(imagehlp wine ${PSEH_LIB})
23add_importlibs(imagehlp dbghelp msvcrt kernel32 ntdll)
24add_pch(imagehlp precomp.h "${PCH_SKIP_SOURCE}")
25add_cd_file(TARGET imagehlp DESTINATION reactos/system32 FOR all)
26