Commit 9b9d8c74 authored by adelmann's avatar adelmann 🎗
Browse files

Use BUILD_OPAL_UNIT_TESTS in the opt-pilot part

parent 9be4338e
......@@ -108,6 +108,8 @@ OPTION (BUILD_LIBOPAL "Enable building the OPAL library" OFF)
OPTION (NO_FIELD_ASSIGN_OPTIMIZATION "Disable compiler optimization of IPPL field assignment" OFF)
OPTION (BUILD_OPAL_UNIT_TESTS "Unit tests" OFF)
IF (BUILD_OPAL_UNIT_TESTS)
FIND_PACKAGE (GTest REQUIRED)
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWITH_UNIT_TESTS")
......
......@@ -181,8 +181,11 @@ ENDIF (NOT OPTP_USED_FROM_OPAL)
#-----------------------------------------------------------------------------
# Testing
IF (BUILD_OPAL_UNIT_TESTS)
enable_testing()
add_subdirectory(Tests)
ENDIF (BUILD_OPAL_UNIT_TESTS)
#-----------------------------------------------------------------------------
# Doxygen
......
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