Add examples subdirectory to CMake build; included if BUILD_EXAMPLES is true

This commit is contained in:
Martin Moene
2017-11-05 09:15:22 +01:00
committed by Martin Hořeňovský
parent 4ecb2e112e
commit 85de0727d4
2 changed files with 105 additions and 0 deletions

View File

@@ -337,6 +337,11 @@ if (NOT NO_SELFTEST)
endif() # !NO_SELFTEST
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
install(DIRECTORY "single_include/" DESTINATION "include/catch")
## Provide some pkg-config integration