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

« back to all changes in this revision

Viewing changes to src/app/webbrowser/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
1
project(webbrowser-app)
2
2
 
 
3
find_package(Qt5Concurrent REQUIRED)
 
4
find_package(Qt5Sql REQUIRED)
 
5
 
3
6
include_directories(
4
7
    ${CMAKE_BINARY_DIR}
5
8
    ${webbrowser-common_SOURCE_DIR}
22
25
set(WEBBROWSER_APP_MODELS webbrowser-app-models)
23
26
 
24
27
add_library(${WEBBROWSER_APP_MODELS} STATIC ${WEBBROWSER_APP_MODELS_SRC})
25
 
 
26
 
qt5_use_modules(${WEBBROWSER_APP_MODELS} Core Sql)
 
28
target_link_libraries(${WEBBROWSER_APP_MODELS}
 
29
    Qt5::Core
 
30
    Qt5::Sql
 
31
)
27
32
 
28
33
set(WEBBROWSER_APP_SRC
29
34
    cache-deleter.cpp
35
40
set(WEBBROWSER_APP webbrowser-app)
36
41
 
37
42
add_executable(${WEBBROWSER_APP} ${WEBBROWSER_APP_SRC})
38
 
 
39
 
target_link_libraries(${WEBBROWSER_APP} ${COMMONLIB} ${WEBBROWSER_APP_MODELS})
40
 
 
41
 
qt5_use_modules(${WEBBROWSER_APP} Concurrent Core Qml Quick)
 
43
target_link_libraries(${WEBBROWSER_APP}
 
44
    Qt5::Concurrent
 
45
    Qt5::Core
 
46
    Qt5::Qml
 
47
    Qt5::Quick
 
48
    ${COMMONLIB}
 
49
    ${WEBBROWSER_APP_MODELS}
 
50
)
42
51
 
43
52
install(TARGETS ${WEBBROWSER_APP}
44
53
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})