Browse Source

Added include dir for BUILD_INTERFACE.

tags/0.7.0
tastytea 8 months ago
parent
commit
b1e25041d9
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/CMakeLists.txt

+ 3
- 1
src/CMakeLists.txt View File

@@ -13,7 +13,9 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR})

target_include_directories(${PROJECT_NAME}
PUBLIC "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
PUBLIC
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")

target_link_libraries(${PROJECT_NAME} PUBLIC PkgConfig::Magick++)



Loading…
Cancel
Save