From 02a3cd2db842912e1f1e19be74f68bdb4494ac3b Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Sat, 9 Mar 2013 08:40:22 +0100 Subject: [PATCH] Modify CMakeLists.txt file to compile the tests --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100755 => 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100755 new mode 100644 index 6a3bc7aa..f874bc4d --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ SET(LIBRARY_OUTPUT_PATH lib/) # Options OPTION(COMPILE_EXAMPLES "Select this if you want to build the examples" OFF) +OPTION(COMPILE_TESTS "Select this if you want to build the tests" OFF) # Headers INCLUDE_DIRECTORIES(src) @@ -31,3 +32,8 @@ ADD_LIBRARY ( IF (COMPILE_EXAMPLES) add_subdirectory(examples/fallingcubes) ENDIF (COMPILE_EXAMPLES) + +# If we need to compile the tests +IF (COMPILE_TESTS) + add_subdirectory(test/) +ENDIF (COMPILE_TESTS)