ES-DE/include/CMakeLists.txt

17 lines
570 B
CMake
Raw Normal View History

# Generate a standard header with export macros
include(GenerateExportHeader)
generate_export_header(lunasvg)
target_include_directories(lunasvg
# When building a project that uses the lunasvg library,
# we need to look in the installed include directory
PUBLIC
$<INSTALL_INTERFACE:include>
# When building the lunasvg library we need to look in the
# build dir for the lunasvg_export.h header and in the source
# dir for other headers
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
)