aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-12-14 16:33:49 -0300
committerLauro Neto <lauro.neto@openbossa.org>2011-01-11 15:50:09 -0300
commit30fcf4f242a1aa37378b86fd4ec89b6905c74aff (patch)
tree9f668ee2a8f77310ca1bdf46ffe8ce7c38712a99 /CMakeLists.txt
parentcb7a4e781352b071ed783b1a3dd0afb283526440 (diff)
Add option to install tests
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe1ca680..1cc8f843 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,8 @@ find_package(Qt4 4.5.0 REQUIRED)
find_package(ApiExtractor 0.9.0 REQUIRED)
option(BUILD_TESTS "Build tests." TRUE)
+option(INSTALL_TESTS "Install tests" FALSE)
+option(TEST_INSTALL_DIR "Test install directory" FALSE)
option(ENABLE_VERSION_SUFFIX "Used to use current version in suffix to generated files. This is used to allow multiples versions installed simultaneous." FALSE)
if(MSVC)
@@ -102,6 +104,9 @@ install(FILES generator.h DESTINATION include/${GENERATORRUNNER_INC_DIR})
install(FILES generatorrunnermacros.h DESTINATION include/${GENERATORRUNNER_INC_DIR})
if (BUILD_TESTS)
+ if (NOT TEST_INSTALL_DIR)
+ set(TEST_INSTALL_DIR "share/generatorrunner/tests")
+ endif()
enable_testing()
endif()