on ab2f849 help sign in
unity8/src/CMakeLists.txt
55 lines 1.6 kB history raw
1pkg_check_modules(CONNECTIVITY REQUIRED connectivity-qt1)
3include_directories(
4 SYSTEM
5 ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
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
19set(SOURCE_FILES
20 ApplicationArguments.cpp
21 main.cpp
22 CachingNetworkManagerFactory.cpp
23 SecondaryWindow.cpp
24 ShellApplication.cpp
25 ShellView.cpp
26 UnityCommandLineParser.cpp
27 UnixSignalHandler.cpp
28 ${QML_FILES} # This is to make qml and image files appear in the IDE's project tree
31if (ENABLE_TOUCH_EMULATION)
32 set(SOURCE_FILES ${SOURCE_FILES} MouseTouchAdaptor.cpp)
33endif()
35pkg_check_modules(ANDROID_PROPERTIES REQUIRED libandroid-properties)
36add_executable(${SHELL_APP} ${SOURCE_FILES})
37qt5_use_modules(${SHELL_APP} DBus Gui Qml Quick Test)
39if (NOT "${ANDROID_PROPERTIES_INCLUDE_DIRS}" STREQUAL "")
40 set_target_properties(${SHELL_APP} PROPERTIES INCLUDE_DIRECTORIES ${ANDROID_PROPERTIES_INCLUDE_DIRS})
41endif()
42target_link_libraries(${SHELL_APP} ${ANDROID_PROPERTIES_LDFLAGS} UbuntuGestures connectivity-qt1)
44if (ENABLE_TOUCH_EMULATION)
45 target_link_libraries(${SHELL_APP} ${MOUSETOUCHADAPTOR_LIBS_LDFLAGS})
46endif()
48# install binaries
49install(TARGETS ${SHELL_APP}
50 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
51 )
53add_subdirectory(Panel)
54add_subdirectory(Dash)
55add_subdirectory(libunity8-private)