Skip to content

Commit

Permalink
make test build optional
Browse files Browse the repository at this point in the history
  • Loading branch information
dweber2022 committed Jul 22, 2024
1 parent d65b18f commit 0594412
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ project(sbu)
# GoogleTest requires at least C++14
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
enable_testing()
add_subdirectory(test)
add_library(mofidtest
STATIC
obdetails.cpp
)

if (BUILD_TESTING)
enable_testing()
add_subdirectory(test)
add_library(mofidtest
STATIC
obdetails.cpp
)
endif()

# tools that do not require external MOFid headers/sources:
set(tools
Expand Down

0 comments on commit 0594412

Please sign in to comment.