Skip to content
Snippets Groups Projects
Commit 565c577e authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Use ctest of default BUID_TESTING flag

parent 6ce3e76f
No related branches found
No related tags found
1 merge request!49Resolve "Finish installation and usage instruction on the documentation"
......@@ -127,7 +127,10 @@ export(EXPORT dune-copasi-targets
add_library(dune::copasi ALIAS dune-copasi)
# include tests as a sub project
add_subdirectory(test)
include(CTest)
if(BUILD_TESTING)
add_subdirectory(test)
endif()
# add definitions for packaging
include(SetupDuneCopasiCPack)
\ No newline at end of file
cmake_minimum_required(VERSION 3.13)
project(dune-copasi-tests CXX)
include(CMakeDependentOption)
cmake_dependent_option(BUILD_TESTS
"Enable tests" OFF
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" ON)
if(NOT TARGET dune::copasi)
find_package(dune-copasi REQUIRED IMPORTED COMPONENTS Libraries Development Runtime)
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