on 157e33e help sign in
unity8/src/CMakeLists.txt
51 lines 1.5 kB history raw
1pkg_check_modules(CONNECTIVITY REQUIRED connectivity-qt1)
3include_directories(
4 ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
5 ${CMAKE_SOURCE_DIR}/libs/UbuntuGestures
6 ${CONNECTIVITY_INCLUDE_DIRS}
7)
9file(GLOB_RECURSE QML_FILES
10 ${CMAKE_SOURCE_DIR}/qml/*
11 ${CMAKE_SOURCE_DIR}/tests/*.qml
12 ${CMAKE_SOURCE_DIR}/tests/*.js
13 ${CMAKE_SOURCE_DIR}/tests/*.jpg
14 ${CMAKE_SOURCE_DIR}/tests/*.png
15 ${CMAKE_SOURCE_DIR}/tests/*.sci
16 ${CMAKE_SOURCE_DIR}/tests/*.svg
19add_executable(${SHELL_APP}
20 ApplicationArguments.cpp
21 main.cpp
22 MouseTouchAdaptor.cpp
23 CachingNetworkManagerFactory.cpp
24 SecondaryWindow.cpp
25 ShellApplication.cpp
26 ShellView.cpp
27 UnityCommandLineParser.cpp
28 ${QML_FILES} # This is to make qml and image files appear in the IDE's project tree
31qt5_use_modules(${SHELL_APP} Gui Qml Quick Test)
33pkg_check_modules(NEEDED_LIBS REQUIRED xcb libandroid-properties)
34if (NOT "${NEEDED_LIBS_INCLUDE_DIRS}" STREQUAL "")
35 set_target_properties(${SHELL_APP} PROPERTIES INCLUDE_DIRECTORIES ${NEEDED_LIBS_INCLUDE_DIRS})
36endif()
37target_link_libraries(${SHELL_APP} ${NEEDED_LIBS_LDFLAGS})
39target_link_libraries(${SHELL_APP} UbuntuGestures connectivity-qt1)
41# For it to find libUbuntuGestures.so
42set_target_properties(${SHELL_APP} PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${SHELL_PRIVATE_LIBDIR}")
44# install binaries
45install(TARGETS ${SHELL_APP}
46 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
47 )
49add_subdirectory(Panel)
50add_subdirectory(Dash)
51add_subdirectory(libunity8-private)