File: CMakeLists.txt

package info (click to toggle)
konqueror 4:18.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 41,556 kB
  • sloc: cpp: 53,688; python: 943; xml: 548; sh: 180; makefile: 9
file content (49 lines) | stat: -rw-r--r-- 1,633 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
if (NOT WIN32)

find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED)

set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/..  )

########### konqviewmgrtest ###############

if (Qt5WebEngineWidgets_FOUND)
  add_executable(konqviewmgrtest konqviewmgrtest.cpp)
  add_test(konqviewmgrtest konqviewmgrtest)
  ecm_mark_as_test(konqviewmgrtest)
  target_link_libraries(konqviewmgrtest kdeinit_konqueror Qt5::Core Qt5::Gui
     # KF5::KHtml
     kwebenginepartlib Qt5::WebEngineWidgets Qt5::Test)
endif()

########### historymanagertest ###############

add_executable(historymanagertest historymanagertest.cpp)
add_test(historymanagertest historymanagertest)
ecm_mark_as_test(historymanagertest)
target_link_libraries(historymanagertest KF5::Konq konquerorprivate  Qt5::Core Qt5::Test)

########### undomanagertest ###############

add_executable(undomanagertest undomanagertest.cpp)
add_test(undomanagertest undomanagertest)
ecm_mark_as_test(undomanagertest)
target_link_libraries(undomanagertest kdeinit_konqueror Qt5::Core Qt5::Test)

########### konqhtmltest ###############

if (Qt5WebEngineWidgets_FOUND)
  add_executable(konqhtmltest konqhtmltest.cpp)
  add_test(konqhtmltest konqhtmltest)
  ecm_mark_as_test(konqhtmltest)
  target_link_libraries(konqhtmltest kdeinit_konqueror kwebenginepartlib Qt5::Core Qt5::Test)
endif()

########### konqviewtest ###############

add_executable(konqviewtest konqviewtest.cpp)
add_test(konqviewtest konqviewtest)
ecm_mark_as_test(konqviewtest)
target_link_libraries(konqviewtest kdeinit_konqueror Qt5::Core Qt5::Test)

endif (NOT WIN32)