Warning, /kdevelop/kdevelop/plugins/debuggercommon/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 remove_definitions(
0002     -DQT_NO_CAST_FROM_ASCII
0003     -DQT_NO_CAST_TO_ASCII
0004     -DQT_NO_CAST_FROM_BYTEARRAY
0005 )
0006 
0007 get_filename_component(GDB_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../gdb ABSOLUTE)
0008 get_filename_component(LLDB_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../lldb ABSOLUTE)
0009 configure_file(debuggers-tests-config.h.in debuggers-tests-config.h)
0010 
0011 add_subdirectory(debuggees)
0012 
0013 add_library(kdevdbg_testhelper STATIC testhelper.cpp)
0014 target_link_libraries(kdevdbg_testhelper
0015     PUBLIC
0016     kdevdebuggercommon
0017     KDev::Debugger
0018     KDev::IExecute
0019     KDev::Interfaces
0020     Qt5::Core
0021     PRIVATE
0022     KDev::Util
0023     Qt5::Test
0024 )
0025 
0026 ecm_add_test(test_miparser.cpp
0027     LINK_LIBRARIES Qt5::Test kdevdebuggercommon
0028 )
0029 
0030 ecm_add_test(test_micommand.cpp
0031     LINK_LIBRARIES Qt5::Test kdevdebuggercommon
0032 )
0033 
0034 ecm_add_test(test_micommandqueue.cpp
0035     LINK_LIBRARIES Qt5::Test kdevdebuggercommon
0036 )
0037 
0038 set(TEST_PLUGIN_DIR "${CMAKE_CURRENT_BINARY_DIR}/testplugindir")
0039 configure_file("plugins/testfilepaths.h.cmake" "testfilepaths.h" ESCAPE_QUOTES)
0040 
0041 kdevplatform_add_plugin(testdebugger SKIP_INSTALL SOURCES plugins/testdebugger.cpp)
0042 target_link_libraries(testdebugger kdevdebuggercommon KDev::Tests)
0043 set_target_properties(testdebugger PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${TEST_PLUGIN_DIR}/kdevplatform/${KDEV_PLUGIN_VERSION}")
0044 
0045 ecm_add_test(test_midbus.cpp
0046     LINK_LIBRARIES Qt5::Test Qt5::DBus Qt5::Core kdevdebuggercommon KDevPlatformTests
0047 )