summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-19 15:13:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-19 15:13:48 +0200
commitd993825ace9886d45d1519ed51d0fccae55da884 (patch)
tree9bdc7bdbf660019f726aae6f98abe2c63c9c8e3d /cmake
parenteee2cffd96fa2d7312708768fac7e67f129c5970 (diff)
parent9a85b814d908a28fb7444b7e1b5afae9fe629784 (diff)
Merge branch 'feature/tobii-eyex-support' into unstable
THIS IS UNFINISHED. The code is built to be fixed in real time against internal API changes.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake16
1 files changed, 10 insertions, 6 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 2e593138..4546de28 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -116,7 +116,7 @@ endfunction()
function(opentrack_boilerplate n)
message(STATUS "module ${n}")
cmake_parse_arguments(arg
- "STATIC;NO-COMPAT;BIN;EXECUTABLE;NO-QT;WIN32-CONSOLE"
+ "STATIC;NO-COMPAT;BIN;EXECUTABLE;NO-QT;WIN32-CONSOLE;NO-INSTALL"
"LINK;COMPILE"
"SOURCES"
${ARGN}
@@ -169,7 +169,9 @@ function(opentrack_boilerplate n)
target_link_libraries(${n} opentrack-api opentrack-options opentrack-compat)
endif()
- opentrack_install_sources(${n})
+ if(NOT arg_NO-INSTALL)
+ opentrack_install_sources(${n})
+ endif()
opentrack_compat(${n})
if(CMAKE_COMPILER_IS_GNUCXX)
@@ -192,10 +194,12 @@ function(opentrack_boilerplate n)
string(REPLACE "-" "_" n_ ${n_})
target_compile_definitions(${n} PRIVATE "BUILD_${n_}")
- if(arg_BIN AND WIN32)
- install(TARGETS ${n} RUNTIME DESTINATION . LIBRARY DESTINATION .)
- else()
- install(TARGETS ${n} ${opentrack-hier-str})
+ if(NOT arg_NO-INSTALL)
+ if(arg_BIN AND WIN32)
+ install(TARGETS ${n} RUNTIME DESTINATION . LIBRARY DESTINATION .)
+ else()
+ install(TARGETS ${n} ${opentrack-hier-str})
+ endif()
endif()
endif()
endfunction()