Skip to content

Commit

Permalink
include CTest only when testing enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TinyTinni committed Aug 2, 2024
1 parent 746538d commit 5ea9bee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ target_sources(doctest PUBLIC
add_subdirectory(src/)

# tests
include(CTest)
enable_testing()
if(FAIRYCAM_ENABLE_TESTING)
add_subdirectory(tests)
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC" AND NOT APPLE)
Expand Down
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include(CTest)
enable_testing()

find_package(OpenCV REQUIRED)
find_package(Poco REQUIRED Foundation Net)
Expand Down

0 comments on commit 5ea9bee

Please sign in to comment.