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