summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:46:26 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:46:26 +0200
commitdad3358f0628de8a8c4572711b8f55f332e421ab (patch)
tree877c02502a8b2d5bb0a6acf5f93b3d7372b4eacc /cmake/opentrack-boilerplate.cmake
parentb463375b4c53d994ad2a7926f4068d3eb896146e (diff)
cmake: add precompiled header generator
cf. https://github.com/sakra/cotire
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-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 36c8d666..89127679 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -108,6 +108,8 @@ function(otr_install_pdb_current_project target)
endif()
endfunction()
+include(cotire)
+
function(otr_module n_)
message(STATUS "module ${n_}")
cmake_parse_arguments(arg
@@ -193,6 +195,8 @@ function(otr_module n_)
set_property(GLOBAL APPEND PROPERTY opentrack-all-modules "${n}")
set_property(GLOBAL APPEND PROPERTY opentrack-all-source-dirs "${CMAKE_CURRENT_SOURCE_DIR}")
+
+ cotire(${n})
endfunction()
function(otr_prop type)