Skip to content
Snippets Groups Projects
Commit 35a1edaa authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

feat : added warning if pybind & tests are enabled

parent cb65223d
No related branches found
No related tags found
4 merge requests!93Release v0.3.0,!64Feat/release pip,!63Draft: Feat/release pip,!62Draft: Feat/release pip 2
......@@ -42,7 +42,7 @@ set(CXX_STANDARD 14)
##############################################
# Define options
option(PYBIND "python binding" ON)
option(PYBIND "python binding" OFF)
option(WERROR "Warning as error" OFF)
option(TEST "Enable tests" ON)
option(COVERAGE "Enable coverage" OFF)
......@@ -174,6 +174,9 @@ export(EXPORT ${CMAKE_PROJECT_NAME}-targets
##############################################
## Add test
if(TEST)
if(PYBIND)
message(FATAL_ERROR "PYBIND and TEST are both enabled. But cannot compile with catch_2.\nChoose between pybind and Catch2 for compilation.")
endif()
enable_testing()
add_subdirectory(unit_tests)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment