Changeset View
Changeset View
Standalone View
Standalone View
src/kdbgwin/CMakeLists.txt
1 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) | 1 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | set(kdbgwin_SRCS | 3 | set(kdbgwin_SRCS | ||
4 | common.h | 4 | common.h | ||
5 | main.cpp | 5 | main.cpp | ||
6 | process.h | 6 | kdbgwin_process.h | ||
7 | process.cpp | 7 | kdbgwin_process.cpp | ||
8 | abstract_generator.h | 8 | abstract_generator.h | ||
9 | abstract_generator.cpp | 9 | abstract_generator.cpp | ||
10 | callbacks.h | 10 | callbacks.h | ||
11 | callbacks.cpp | 11 | callbacks.cpp | ||
12 | outputters.h | 12 | outputters.h | ||
13 | outputters.cpp | 13 | outputters.cpp | ||
14 | ${CMAKE_CURRENT_BINARY_DIR}/../drkonqi_debug.cpp | 14 | ${CMAKE_CURRENT_BINARY_DIR}/../drkonqi_debug.cpp | ||
15 | ) | 15 | ) | ||
16 | 16 | | |||
17 | set(COMMON_LIBS dbghelp psapi shlwapi) | 17 | set(COMMON_LIBS dbghelp psapi shlwapi Qt5::Core) | ||
18 | 18 | | |||
19 | if ( MINGW ) | 19 | if ( MINGW ) | ||
20 | add_executable(kdbgwin ${kdbgwin_SRCS} mingw_generator.h mingw_generator.cpp) | 20 | add_executable(kdbgwin ${kdbgwin_SRCS} mingw_generator.h mingw_generator.cpp) | ||
21 | target_link_libraries(kdbgwin PRIVATE ${COMMON_LIBS} bfd iberty intl ZLIB::ZLIB Qt5::Core) | 21 | target_link_libraries(kdbgwin PRIVATE ${COMMON_LIBS} bfd iberty intl ZLIB::ZLIB) | ||
22 | endif () | 22 | endif () | ||
23 | if ( MSVC OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")) | 23 | if ( MSVC OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")) | ||
24 | add_executable(kdbgwin ${kdbgwin_SRCS} msvc_generator.h msvc_generator.cpp) | 24 | add_executable(kdbgwin ${kdbgwin_SRCS} msvc_generator.h msvc_generator.cpp) | ||
25 | target_link_libraries(kdbgwin ${COMMON_LIBS}) | 25 | target_link_libraries(kdbgwin ${COMMON_LIBS}) | ||
26 | endif () | 26 | endif () | ||
27 | 27 | | |||
28 | install(TARGETS kdbgwin DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | 28 | install(TARGETS kdbgwin DESTINATION ${KDE_INSTALL_LIBEXECDIR}) |