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

« back to all changes in this revision

Viewing changes to src/app/webcontainer/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(webapp-container)
2
2
 
 
3
find_package(Qt5DBus REQUIRED)
 
4
find_package(Qt5Sql REQUIRED)
 
5
 
3
6
include_directories(
4
7
    ${CMAKE_BINARY_DIR}
5
8
    ${webbrowser-common_SOURCE_DIR}
23
26
 
24
27
add_executable(${WEBAPP_CONTAINER} ${WEBAPP_CONTAINER_SRC})
25
28
 
26
 
target_link_libraries(${WEBAPP_CONTAINER} ${COMMONLIB})
27
 
 
28
 
qt5_use_modules(${WEBAPP_CONTAINER} Core Widgets Quick Qml Sql DBus)
 
29
target_link_libraries(${WEBAPP_CONTAINER}
 
30
    Qt5::Core
 
31
    Qt5::DBus
 
32
    Qt5::Qml
 
33
    Qt5::Quick
 
34
    Qt5::Sql
 
35
    Qt5::Widgets
 
36
    ${COMMONLIB}
 
37
)
29
38
 
30
39
install(TARGETS ${WEBAPP_CONTAINER}
31
40
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})