-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
28 lines (20 loc) · 1.12 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Searches for all qml and javascript files in the current directory
# to add them to the project, if you add new files in the directory
# rerun cmake to make sure they show up in the project tree
file(GLOB QML_JS_FILES *.qml *.js)
# Make the files visible in qtcreator
add_custom_target(cafesync_QMlFiles ALL SOURCES ${QML_JS_FILES})
# Substitute variables in the desktop file
configure_file(${DESKTOP_FILE_NAME}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE_NAME}.in)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE_NAME} DESTINATION ${DESKTOP_DIR})
install(FILES ${QML_JS_FILES} DESTINATION ${CAFESYNC_DIR})
# Make the autpilot files visible in qtcreator
file(GLOB_RECURSE AUTOPILOT_TEST_FILES *.py)
add_custom_target(cafesync_AutopilotFiles ALL SOURCES ${AUTOPILOT_TEST_FILES})
# Make the qml test files visible in qtcreator
file(GLOB_RECURSE UNIT_TEST_FILES tests/unit/*.qml)
add_custom_target(cafesync_UnitTestFiles ALL SOURCES ${UNIT_TEST_FILES})
#adding image files
file(GLOB_RECURSE Image_FILES *.png *.jpg *.svg)
# Make the files visible in qtcreator
add_custom_target(cafesync_ImgFiles ALL SOURCES ${Image_FILES})