xref: /reactos/dll/win32/imagehlp/CMakeLists.txt (revision 84ccccab)
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    precomp.h)
12
13add_library(imagehlp SHARED
14    ${SOURCE}
15    imagehlp.rc
16    ${CMAKE_CURRENT_BINARY_DIR}/imagehlp_stubs.c
17    ${CMAKE_CURRENT_BINARY_DIR}/imagehlp.def)
18
19set_module_type(imagehlp win32dll)
20target_link_libraries(imagehlp wine ${PSEH_LIB})
21add_importlibs(imagehlp dbghelp msvcrt kernel32 ntdll)
22add_pch(imagehlp precomp.h SOURCE)
23add_cd_file(TARGET imagehlp DESTINATION reactos/system32 FOR all)
24