Skip to content

Commit

Permalink
Use system catch2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed May 28, 2023
1 parent 533fee8 commit e103efb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)

# Source dirs
add_subdirectory(3rdparty/catch2)
if (USE_SYSTEM_CATCH2)
find_package(Catch2 REQUIRED)
else()
add_subdirectory(3rdparty/catch2)
endif()
add_subdirectory(src)
if (BUILD_TESTING)
enable_testing() # must come *before* adding tests directory
Expand Down

0 comments on commit e103efb

Please sign in to comment.