on a142f21 help sign in
unity8/src/CMakeLists.txt
48 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 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)
30pkg_check_modules(NEEDED_LIBS REQUIRED xcb libandroid-properties)
31if (NOT "${NEEDED_LIBS_INCLUDE_DIRS}" STREQUAL "")
32 set_target_properties(${SHELL_APP} PROPERTIES INCLUDE_DIRECTORIES ${NEEDED_LIBS_INCLUDE_DIRS})
33endif()
34target_link_libraries(${SHELL_APP} ${NEEDED_LIBS_LDFLAGS})
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)