Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sofa.Testing] Do not build Sofa.Testing if SOFA_BUILD_TESTS is OFF #4459

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Sofa/framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ sofa_add_subdirectory(library DefaultType Sofa.DefaultType ON)
sofa_add_subdirectory(library Core Sofa.Core ON)
sofa_add_subdirectory(library Simulation Sofa.Simulation ON)
sofa_add_subdirectory(library SimpleApi Sofa.SimpleApi ON)
sofa_add_subdirectory(library Testing Sofa.Testing ON)
if(SOFA_BUILD_TESTS)
sofa_add_subdirectory(library Testing Sofa.Testing ON)
endif()

# Library gathering all framework libraries
sofa_add_subdirectory(library Framework Sofa.Framework ON)
6 changes: 5 additions & 1 deletion Sofa/framework/Framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ project(Sofa.Framework LANGUAGES CXX)

set(SOFAFRAMEWORK_SOURCE_DIR "src/sofa/framework")

set(SOFAFRAMEWORK_MODULES Sofa.Config Sofa.Type Sofa.Geometry Sofa.Topology Sofa.Helper Sofa.LinearAlgebra Sofa.DefaultType Sofa.Core Sofa.Simulation.Core Sofa.Simulation.Common Sofa.Simulation.Graph Sofa.Testing)
set(SOFAFRAMEWORK_MODULES Sofa.Config Sofa.Type Sofa.Geometry Sofa.Topology Sofa.Helper Sofa.LinearAlgebra Sofa.DefaultType Sofa.Core Sofa.Simulation.Core Sofa.Simulation.Common Sofa.Simulation.Graph)
if(SOFA_BUILD_TESTS)
list(APPEND SOFAFRAMEWORK_MODULES Sofa.Testing)
endif()

foreach(framework_module ${SOFAFRAMEWORK_MODULES})
sofa_find_package(${framework_module} REQUIRED)
endforeach()
Expand Down
Loading