2023-05-08 17:53:29 +00:00
|
|
|
# Generate a standard header with export macros
|
|
|
|
include(GenerateExportHeader)
|
|
|
|
generate_export_header(lunasvg)
|
|
|
|
|
2022-10-03 16:25:42 +00:00
|
|
|
target_include_directories(lunasvg
|
2023-05-08 17:53:29 +00:00
|
|
|
# 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}>
|
2022-10-03 16:25:42 +00:00
|
|
|
)
|