Добавлен путь для поиска заголовочных файлов

This commit is contained in:
Andrei Astafev 2021-12-09 17:14:02 +03:00
parent 2051f51a29
commit 1b47d92e15

View File

@ -41,6 +41,7 @@ function(myx_cmake_common_target_properties target)
target_include_directories(
${target}
PUBLIC $<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/src>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>)
@ -67,8 +68,6 @@ function(myx_cmake_common_target_properties target)
endif()
if(_target_type STREQUAL OBJECT_LIBRARY)
# target_include_directories(${target} PUBLIC
# $<INSTALL_INTERFACE:include/${target}>)
set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()