Commit ccf1f14b authored by Jan Möbius's avatar Jan Möbius

Added flag to enable and disable unittests inside OpenFlipper

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13942 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 51a1d5b3
......@@ -40,10 +40,19 @@ SET (CTEST_DROP_SITE_CDASH FALSE)
# ========================================================================
# ========================================================================
find_package(GoogleTest)
if(GTEST_FOUND)
add_subdirectory(${CMAKE_SOURCE_DIR}/libs_required/OpenMesh/src/Unittests ${CMAKE_BINARY_DIR}/libs_required/OpenMesh/src/Unittests)
if ( NOT DEFINED OPENFLIPPER_BUILD_UNIT_TESTS )
set( OPENFLIPPER_BUILD_UNIT_TESTS false CACHE BOOL "Enable or disable unit tests on all integrated libraries." )
endif()
if ( OPENFLIPPER_BUILD_UNIT_TESTS )
find_package(GoogleTest)
if(GTEST_FOUND)
add_subdirectory(${CMAKE_SOURCE_DIR}/libs_required/OpenMesh/src/Unittests ${CMAKE_BINARY_DIR}/libs_required/OpenMesh/src/Unittests)
endif()
endif()
# ========================================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment