on 551c708 help sign in
unity8/src/CMakeLists.txt
39 lines 1.0 kB history raw
1pkg_check_modules(UNITY-MIR REQUIRED unity-mir)
3include_directories(
4 ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
5 ${UNITY-MIR_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
18add_executable(${SHELL_APP}
19 ApplicationArguments.h
20 main.cpp
21 MouseTouchAdaptor.cpp
22 ${QML_FILES} # This is to make qml and image files appear in the IDE's project tree
25qt5_use_modules(${SHELL_APP} Gui Qml Quick Test)
26pkg_check_modules(XCB REQUIRED xcb)
28if (NOT "${XCB_INCLUDE_DIRS}" STREQUAL "")
29 set_target_properties(${SHELL_APP} PROPERTIES INCLUDE_DIRECTORIES ${XCB_INCLUDE_DIRS})
31 target_link_libraries(${SHELL_APP} ${XCB_LDFLAGS})
32endif()
34# install binaries
35install(TARGETS ${SHELL_APP}
36 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
37 )
39add_subdirectory(Panel)