Skip to content

Commit

Permalink
CMakeLists.txt: build tests conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
yurtpage committed Jul 28, 2024
1 parent 82f520f commit 239afb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ include(configuration)

add_subdirectory(source)
add_subdirectory(thirdparty)
add_subdirectory(tests)
if(BUILD_TESTING)
add_subdirectory(tests)
endif(BUILD_TESTING)

include(installation)
add_subdirectory(examples)
Expand Down
4 changes: 3 additions & 1 deletion thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
add_subdirectory(gtest)
if(BUILD_TESTING)
add_subdirectory(gtest)
endif(BUILD_TESTING)
add_subdirectory(qcustomplot)

0 comments on commit 239afb0

Please sign in to comment.