summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-05-05 12:34:36 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-05-06 03:42:16 +0200
commitc033bacae076580d86458496d15af608e4f34042 (patch)
tree6a972268d9f95535aac698505460824243d2b843
parent8d13f7ba3dd776da1cc1332f977ee184324d1941 (diff)
cmake: install sources
-rw-r--r--CMakeLists.txt3
-rw-r--r--cmake/opentrack-install.cmake2
2 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 79ab0b5e..5b1755f0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,9 +82,8 @@ endfunction()
otr_add_subdirs()
otr_merge_translations()
-#install_sources()
-
include(opentrack-install)
+otr_install_sources()
string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE)
message(STATUS "-- Compile flags:")
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake
index cd4f6278..3a63cf69 100644
--- a/cmake/opentrack-install.cmake
+++ b/cmake/opentrack-install.cmake
@@ -22,7 +22,7 @@ function(otr_setup_refresh_install_dir)
endif()
endfunction()
-function(install_sources)
+function(otr_install_sources)
otr_setup_refresh_install_dir()
get_property(source-dirs GLOBAL PROPERTY opentrack-all-source-dirs)
foreach(k ${source-dirs})