summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:37:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:37:37 +0200
commit1f6ca4d1ded3146f1e358007528d9f1ab2b522ec (patch)
tree5e66aba1ffbe27dbed383e6cbc498b5313504b11 /CMakeLists.txt
parent18b559ff13898e8e96275b7e329bfa23b7394f6f (diff)
some nonsense
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt53
1 files changed, 26 insertions, 27 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9b68b82c..aff3011a 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -52,35 +52,34 @@ if(WIN32)
enable_language(RC)
endif()
-add_custom_target(mrproper COMMAND ${CMAKE_COMMAND} -P "${CMAKE_SOURCE_DIR}/cmake/opentrack-clean-build-directory.cmake" WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
+add_custom_target(mrproper COMMAND
+ "${CMAKE_COMMAND}" -P
+ "${CMAKE_SOURCE_DIR}/cmake/opentrack-clean-build-directory.cmake"
+ WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
-set(C CMakeLists.txt)
-file(GLOB opentrack-subprojects
- "tracker-*/${C}"
- "proto-*/${C}"
- "filter-*/${C}"
- "ext-*/${C}"
- "options/${C}"
- "api/${C}"
- "compat/${C}"
- "logic/${C}"
- "dinput/${C}"
- "gui/${C}"
- "x-plane-plugin/${C}"
- "csv/${C}"
- "pose-widget/${C}"
- "spline/${C}"
- "qxt-mini/${C}"
- "macosx/${C}"
- "cv/${C}"
- "migration/${C}"
-)
+otr_add_target_dirs(opentrack-subprojects
+ "tracker-*"
+ "proto-*"
+ "filter-*"
+ "ext-*"
+ "options"
+ "api"
+ "compat"
+ "logic"
+ "dinput"
+ "gui"
+ "x-plane-plugin"
+ "csv"
+ "pose-widget"
+ "spline"
+ "qxt-mini"
+ "macosx"
+ "cv"
+ "migration")
-list(SORT opentrack-subprojects)
-
-foreach(i ${opentrack-subprojects})
- get_filename_component(i ${i} DIRECTORY)
- add_subdirectory(${i})
+foreach(k ${opentrack-subprojects})
+ get_filename_component(k "${k}" DIRECTORY)
+ add_subdirectory("${k}")
endforeach()
otr_merge_translations()