on 02fa86a help sign in
unity8/src/CMakeLists.txt
49 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 UnityCommandLineParser.cpp
25 ${QML_FILES} # This is to make qml and image files appear in the IDE's project tree
28qt5_use_modules(${SHELL_APP} Gui Qml Quick Test)
29pkg_check_modules(XCB REQUIRED xcb)
31if (NOT "${XCB_INCLUDE_DIRS}" STREQUAL "")
32 set_target_properties(${SHELL_APP} PROPERTIES INCLUDE_DIRECTORIES ${XCB_INCLUDE_DIRS})
34 target_link_libraries(${SHELL_APP} ${XCB_LDFLAGS})
35endif()
37target_link_libraries(${SHELL_APP} UbuntuGestures connectivity-qt1)
39# For it to find libUbuntuGestures.so
40set_target_properties(${SHELL_APP} PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${SHELL_PRIVATE_LIBDIR}")
42# install binaries
43install(TARGETS ${SHELL_APP}
44 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
45 )
47add_subdirectory(Panel)
48add_subdirectory(Dash)
49add_subdirectory(libunity8-private)