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

« back to all changes in this revision

Viewing changes to src/app/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-common)
2
2
 
 
3
find_package(Qt5Core REQUIRED)
 
4
find_package(Qt5Gui REQUIRED)
 
5
find_package(Qt5Network REQUIRED)
 
6
find_package(Qt5Qml REQUIRED)
 
7
find_package(Qt5Quick REQUIRED)
 
8
find_package(Qt5Widgets REQUIRED)
 
9
 
3
10
add_subdirectory(unity8)
4
11
 
5
12
configure_file(
18
25
 
19
26
add_library(${COMMONLIB} STATIC ${COMMONLIB_SRC})
20
27
 
21
 
qt5_use_modules(${COMMONLIB} Core Gui Network Qml Quick Widgets)
22
 
 
23
28
include_directories(${unity8_SOURCE_DIR}/libs/UbuntuGestures
24
29
                    ${unity8_SOURCE_DIR}/plugins)
25
 
target_link_libraries(${COMMONLIB} UbuntuGesturesQml)
 
30
target_link_libraries(${COMMONLIB}
 
31
    Qt5::Core
 
32
    Qt5::Gui
 
33
    Qt5::Network
 
34
    Qt5::Qml
 
35
    Qt5::Quick
 
36
    Qt5::Widgets
 
37
    UbuntuGesturesQml
 
38
)
26
39
 
27
40
file(GLOB QML_FILES *.qml)
28
41
install(FILES ${QML_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/webbrowser-app)