on 97ca86b help sign in
unity8/src/CMakeLists.txt
48 lines 1.4 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.h
21 main.cpp
22 MouseTouchAdaptor.cpp
23 CachingNetworkManagerFactory.cpp
24 ${QML_FILES} # This is to make qml and image files appear in the IDE's project tree
27qt5_use_modules(${SHELL_APP} Gui Qml Quick Test)
28pkg_check_modules(XCB REQUIRED xcb)
30if (NOT "${XCB_INCLUDE_DIRS}" STREQUAL "")
31 set_target_properties(${SHELL_APP} PROPERTIES INCLUDE_DIRECTORIES ${XCB_INCLUDE_DIRS})
33 target_link_libraries(${SHELL_APP} ${XCB_LDFLAGS})
34endif()
36target_link_libraries(${SHELL_APP} UbuntuGestures connectivity-qt1)
38# For it to find libUbuntuGestures.so
39set_target_properties(${SHELL_APP} PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${SHELL_PRIVATE_LIBDIR}")
41# install binaries
42install(TARGETS ${SHELL_APP}
43 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
44 )
46add_subdirectory(Panel)
47add_subdirectory(Dash)
48add_subdirectory(libunity8-private)