Пути к заголовочным файлам

This commit is contained in:
Andrei Astafev 2019-02-14 22:41:06 +03:00
parent b98eb26b32
commit 8b1bfefdb3

View File

@ -15,9 +15,10 @@ function(common_target_properties Name)
set(_LARGEFILE64_SOURCE ON)
use_large_files(${Name} ON)
target_compile_features(${Name} ${__visibility} ${COMMON_CXX_FEATURES})
target_include_directories(${current_target} PUBLIC
target_include_directories(${Name} PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>)
if(APPLE)
target_compile_definitions(${Name} ${__visibility} Darwin)