Instructions for CMake usage

Also do lint fixes for Markdown.

Also, do not install tests code, especially
GTest, when installing c-capnproto
through CMake
This commit is contained in:
Jonah Beckford 2023-08-08 07:00:46 -07:00
parent d8b55078ba
commit a3e6f6c331
2 changed files with 32 additions and 10 deletions

View file

@ -99,6 +99,6 @@ install(EXPORT CapnC
FILE CapnCConfig.cmake)
install(FILES lib/capnp_c.h TYPE INCLUDE)
if(BUILD_TESTING)
if(BUILD_TESTING AND CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
add_subdirectory(tests)
endif()