~osomon/webbrowser-app/oxide-context-menu

« back to all changes in this revision

Viewing changes to tests/unittests/history-timeframe-model/CMakeLists.txt

  • Committer: Olivier Tilloy
  • Date: 2015-06-22 10:29:20 UTC
  • mto: This revision was merged to the branch mainline in revision 1092.
  • Revision ID: olivier.tilloy@canonical.com-20150622102920-86i16ppzjw8934un
Prefer target_link_libraries(…) with Qt5:: prefixed modules over qt5_use_modules,
per documentation at http://doc.qt.io/qt-5/cmake-manual.html.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
find_package(Qt5Core REQUIRED)
 
2
find_package(Qt5Sql REQUIRED)
 
3
find_package(Qt5Test REQUIRED)
1
4
set(TEST tst_HistoryTimeframeModelTests)
2
5
add_executable(${TEST} tst_HistoryTimeframeModelTests.cpp)
3
6
include_directories(${webbrowser-app_SOURCE_DIR})
4
 
qt5_use_modules(${TEST} Test)
5
 
target_link_libraries(${TEST} webbrowser-app-models)
 
7
target_link_libraries(${TEST}
 
8
    Qt5::Core
 
9
    Qt5::Sql
 
10
    Qt5::Test
 
11
    webbrowser-app-models
 
12
)
6
13
add_test(${TEST} ${CMAKE_CURRENT_BINARY_DIR}/${TEST})