瀏覽代碼

Added include dir for BUILD_INTERFACE.

tags/0.7.0
tastytea 9 月之前
父節點
當前提交
b1e25041d9
簽署人: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/CMakeLists.txt

+ 3
- 1
src/CMakeLists.txt 查看文件

@@ -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…
取消
儲存