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:
parent
d8b55078ba
commit
a3e6f6c331
2 changed files with 32 additions and 10 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue