Skip to content

Commit

Permalink
Include contrib in installation
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Jun 24, 2018
1 parent 6c1145d commit ed582bd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CMakeLists.txt
Expand Up @@ -20,6 +20,8 @@ option(CATCH_BUILD_EXAMPLES "Build documentation examples" OFF)
option(CATCH_ENABLE_COVERAGE "Generate coverage for codecov.io" OFF)
option(CATCH_ENABLE_WERROR "Enable all warnings as errors" ON)
option(CATCH_INSTALL_DOCS "Install documentation alongside library" ON)
option(CATCH_INSTALL_HELPERS "Install contrib alongside library" ON)


set_property(GLOBAL PROPERTY USE_FOLDERS ON)

Expand Down Expand Up @@ -130,6 +132,26 @@ if(CATCH_INSTALL_DOCS)
)
endif()

if(CATCH_INSTALL_HELPERS)
# Install CMake scripts
install(
FILES
"contrib/ParseAndAddCatchTests.cmake"
"contrib/Catch.cmake"
"contrib/CatchAddTests.cmake"
DESTINATION
${CATCH_CMAKE_CONFIG_DESTINATION}
)

# Install debugger helpers
install(
FILES
"contrib/gdbinit"
"contrib/lldbinit"
DESTINATION
${CMAKE_INSTALL_DATAROOTDIR}/Catch2
)
endif()

## Provide some pkg-config integration
set(PKGCONFIG_INSTALL_DIR
Expand Down

0 comments on commit ed582bd

Please sign in to comment.