externals: Make catch an interface target

Eliminates top-level inclusion of the headers with include_directories()
and instead utilizes it on a by-target basis using target_include_directories().
This commit is contained in:
Lioncash 2017-02-25 12:31:53 -05:00 committed by Merry
parent 2449468ede
commit f9e7e85308
3 changed files with 7 additions and 4 deletions

View file

@ -13,3 +13,7 @@ if (NOT TARGET xbyak)
target_include_directories(xbyak INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/xbyak/xbyak)
endif()
endif()
add_library(catch INTERFACE)
target_include_directories(catch INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/catch>)