Merge pull request #1 from swift-nav/woodfell/cmake_dependency_resolution

Export interface include paths in the library target [ESD-1246] [ESD-1247]
This commit is contained in:
Matt Woodward 2019-05-29 19:00:39 +10:00 committed by GitHub
commit 0afb418320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,6 +280,10 @@ set(_INSTALL_DESTINATIONS
### Library
###
add_library(yaml-cpp ${library_sources})
target_include_directories(yaml-cpp INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)
set_target_properties(yaml-cpp PROPERTIES
COMPILE_FLAGS "${yaml_c_flags} ${yaml_cxx_flags}"
)