Skip to content

Commit

Permalink
Merge pull request #54 from andrsd/cmake-opt-for-tools
Browse files Browse the repository at this point in the history
Adding a cmake option for building tools
  • Loading branch information
andrsd authored Apr 1, 2024
2 parents 81bf54b + c5dea2a commit d2b828d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ endif()
set_property(CACHE EXODUSIICPP_LIBRARY_TYPE PROPERTY STRINGS ${LibraryTypeValues})

option(EXODUSIICPP_BUILD_TESTS "Build tests" NO)
option(EXODUSIICPP_BUILD_TOOLS "Build tools" YES)

find_package(fmt 8.0 REQUIRED)
find_package(NetCDF 4.5 REQUIRED)
Expand Down Expand Up @@ -52,7 +53,9 @@ if (EXODUSIICPP_BUILD_TESTS)
endif()

add_subdirectory(src)
add_subdirectory(tools)
if (EXODUSIICPP_BUILD_TOOLS)
add_subdirectory(tools)
endif()

# Tests

Expand Down

0 comments on commit d2b828d

Please sign in to comment.