Last active
August 29, 2015 14:25
-
-
Save jslee02/097cae2403a0bcba034d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index f04f57a..9ec95ab 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -18,6 +18,7 @@ message(STATUS "CMAKE_BINARY_DIR = ${CMAKE_BINARY_DIR}") | |
option(BUILD_SNOPT "Build with SNOPT optimizer" OFF) | |
option(BUILD_CORE_ONLY "Build only the core of DART" OFF) | |
+option(BUILD_UNITTESTS "Build unit tests" ON) | |
if(NOT MSVC) | |
OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON) | |
endif() | |
@@ -153,8 +154,10 @@ install(FILES ${PC_CONFIG_OUT} DESTINATION lib/pkgconfig) | |
############### | |
add_subdirectory(src) | |
if(NOT BUILD_CORE_ONLY) | |
- enable_testing() | |
- add_subdirectory(unittests) | |
+ if(BUILD_UNITTESTS) | |
+ enable_testing() | |
+ add_subdirectory(unittests) | |
+ endif() | |
add_subdirectory(apps) | |
endif() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment