kde-workspace/drkonqi/CMakeLists.txt
Ivailo Monev 591b538337 generic: replace installation paths with KDE4_ prefixed
see commit in kdelibs repository

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:13:13 +00:00

61 lines
1.5 KiB
CMake

project(drkonqi)
check_function_exists("strsignal" HAVE_STRSIGNAL)
check_function_exists("uname" HAVE_UNAME)
if(NOT DEBUG_PACKAGE_INSTALLER_NAME)
set (DEBUG_PACKAGE_INSTALLER_NAME "installdbgsymbols.sh")
endif()
configure_file(
config-drkonqi.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-drkonqi.h
)
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1410)
add_subdirectory(data)
set(drkonqi_SRCS
main.cpp
drkonqidialog.cpp
statuswidget.cpp
backtraceratingwidget.cpp
backtracewidget.cpp
backtracegenerator.cpp
drkonqi.cpp
drkonqibackends.cpp
detachedprocessmonitor.cpp
debugpackageinstaller.cpp
systeminformation.cpp
crashedapplication.cpp
debugger.cpp
debuggerlaunchers.cpp
debuggermanager.cpp
gdbhighlighter.cpp
)
set(backtrace_parser_SRCS
parser/backtraceparser.cpp
parser/backtraceparsergdb.cpp
parser/backtraceparsernull.cpp
)
if(ENABLE_TESTING)
add_library(drkonqi_backtrace_parser STATIC ${backtrace_parser_SRCS})
target_link_libraries(drkonqi_backtrace_parser ${KDE4_KDECORE_LIBS})
add_subdirectory(tests)
endif()
# if BACKTRACE_PARSER_DEBUG is enabled, it will show both the
# parsed and the unparsed backtrace in the backtrace widget.
# Comment this out for release.
#add_definitions(-DBACKTRACE_PARSER_DEBUG)
add_executable(drkonqi ${drkonqi_SRCS} ${backtrace_parser_SRCS})
target_link_libraries(drkonqi
${KDE4_KIO_LIBS}
)
install(TARGETS drkonqi DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR})