Skip to content

Commit

Permalink
Support CTest
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 6, 2024
1 parent cf4b503 commit a042510
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)

# Allow clangd and others to properly understand this C++ project
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Testing only available if this is the main project
# Note this needs to be done in the main CMakeLists
# since it calls enable_testing, which must be in the
# main CMakeLists.
include(CTest)
endif()


Expand Down

0 comments on commit a042510

Please sign in to comment.