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