on 5d86cc3 help sign in
unity8/src/CMakeLists.txt
62 lines 1.7 kB history raw
1add_subdirectory(libunity8-private)
3pkg_check_modules(CONNECTIVITY REQUIRED connectivity-qt1)
5include_directories(
6 SYSTEM
7 ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
8 ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
9 ${CONNECTIVITY_INCLUDE_DIRS}
12include_directories(
13 ${libunity8-private_SOURCE_DIR}
16file(GLOB_RECURSE QML_FILES
17 ${CMAKE_SOURCE_DIR}/qml/*
18 ${CMAKE_SOURCE_DIR}/tests/*.qml
19 ${CMAKE_SOURCE_DIR}/tests/*.js
20 ${CMAKE_SOURCE_DIR}/tests/*.jpg
21 ${CMAKE_SOURCE_DIR}/tests/*.png
22 ${CMAKE_SOURCE_DIR}/tests/*.sci
23 ${CMAKE_SOURCE_DIR}/tests/*.svg
26set(SOURCE_FILES
27 ApplicationArguments.cpp
28 main.cpp
29 CachingNetworkManagerFactory.cpp
30 SecondaryWindow.cpp
31 ShellApplication.cpp
32 ShellView.cpp
33 UnityCommandLineParser.cpp
34 UnixSignalHandler.cpp
35 DebuggingController.cpp
36 ${QML_FILES} # This is to make qml and image files appear in the IDE's project tree
39if (ENABLE_TOUCH_EMULATION)
40 set(SOURCE_FILES ${SOURCE_FILES} MouseTouchAdaptor.cpp)
41endif()
43pkg_check_modules(ANDROID_PROPERTIES REQUIRED libandroid-properties)
44add_executable(${SHELL_APP} ${SOURCE_FILES})
45qt5_use_modules(${SHELL_APP} DBus Gui Qml Quick Test)
47if (NOT "${ANDROID_PROPERTIES_INCLUDE_DIRS}" STREQUAL "")
48 set_target_properties(${SHELL_APP} PROPERTIES INCLUDE_DIRECTORIES ${ANDROID_PROPERTIES_INCLUDE_DIRS})
49endif()
50target_link_libraries(${SHELL_APP} ${ANDROID_PROPERTIES_LDFLAGS} UbuntuGestures connectivity-qt1 unity8-private)
52if (ENABLE_TOUCH_EMULATION)
53 target_link_libraries(${SHELL_APP} ${MOUSETOUCHADAPTOR_LIBS_LDFLAGS})
54endif()
56# install binaries
57install(TARGETS ${SHELL_APP}
58 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
59 )
61add_subdirectory(Panel)
62add_subdirectory(Dash)