summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-10 09:48:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-10 10:41:59 +0200
commit41a9c95dd2e250e8d9735880236f30662c149fe0 (patch)
tree507cede8e3c670c19fe96ab750839b8285fe4a68
parent5a4c8f61e0ad001a8c462e50117b1fd474d27e6c (diff)
cmake: install CMakeFiles.txt and cmake/ subdir into doc/source-code
-rw-r--r--cmake/opentrack-boilerplate.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index f6f8e8aa..66a79a59 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -23,6 +23,9 @@ if(NOT (orig-hier-path STREQUAL new-hier-path))
file(WRITE ${hier-path-filename} "${new-hier-path}")
endif()
+install(FILES "${CMAKE_SOURCE_DIR}/CMakeLists.txt" DESTINATION "${opentrack-doc-src-pfx}")
+install(DIRECTORY "${CMAKE_SOURCE_DIR}/cmake" DESTINATION "${opentrack-doc-src-pfx}")
+
function(opentrack_set_globs n)
set(dir ${PROJECT_SOURCE_DIR})
file(GLOB ${n}-c ${dir}/*.cpp ${dir}/*.c ${dir}/*.h ${dir}/*.hpp)
@@ -70,6 +73,7 @@ function(opentrack_boilerplate__ n files_ no-library_ static_ no-compat_ compile
endif()
add_library(${n} ${link-mode} ${files_})
set(all-files ${${n}-c} ${${n}-res} ${${n}-ui} ${${n}-rc})
+ install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt" DESTINATION "${opentrack-doc-src-pfx}/${n}")
install(FILES ${all-files} DESTINATION "${opentrack-doc-src-pfx}/${n}")
message(STATUS "module ${n}")
endif()