Changeset View
Changeset View
Standalone View
Standalone View
addons/tabswitcher/autotests/CMakeLists.txt
1 | include(ECMMarkAsTest) | 1 | include(ECMMarkAsTest) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | include_directories( | 3 | add_executable(tabswitcher_test "") | ||
4 | ${CMAKE_CURRENT_SOURCE_DIR}/.. | 4 | target_include_directories(tabswitcher_test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..) | ||
5 | | ||||
6 | target_link_libraries( | ||||
7 | tabswitcher_test | ||||
8 | PRIVATE | ||||
9 | kdeinit_kate | ||||
10 | Qt5::Test | ||||
11 | ) | ||||
12 | | ||||
13 | target_sources( | ||||
14 | tabswitcher_test | ||||
15 | PRIVATE | ||||
16 | tabswitchertest.cpp | ||||
17 | ../tabswitcherfilesmodel.cpp | ||||
5 | ) | 18 | ) | ||
6 | 19 | | |||
7 | set(Src tabswitchertest.cpp ../tabswitcherfilesmodel.cpp) | | |||
8 | add_executable(tabswitcher_test ${Src}) | | |||
9 | add_test(NAME plugin-tabswitcher_test COMMAND tabswitcher_test) | 20 | add_test(NAME plugin-tabswitcher_test COMMAND tabswitcher_test) | ||
10 | target_link_libraries(tabswitcher_test kdeinit_kate Qt5::Test) | | |||
11 | ecm_mark_as_test(tabswitcher_test) | 21 | ecm_mark_as_test(tabswitcher_test) |