Skip to content
Permalink
Browse files

[cmake] use target_include_directories in analysis

  • Loading branch information
3nids committed Jan 13, 2021
1 parent 3db2bc6 commit ed155dedf21770991aad0f6b51d259ee93d2178a
Showing with 17 additions and 14 deletions.
  1. +17 −14 src/analysis/CMakeLists.txt
@@ -423,20 +423,6 @@ endif()

# install headers

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/src/analysis/vector/geometry_checker
${CMAKE_SOURCE_DIR}/external
${CMAKE_SOURCE_DIR}/external/nlohmann

${CMAKE_BINARY_DIR}/src/analysis
interpolation
network
)
include_directories(SYSTEM
${EXIV2_INCLUDE_DIR}
)

if(HAVE_OPENCL)
include_directories(SYSTEM ${OpenCL_INCLUDE_DIRS})
endif()
@@ -448,6 +434,23 @@ endif()

add_library(qgis_analysis ${LIBRARY_TYPE} ${QGIS_ANALYSIS_SRCS} ${QGIS_ANALYSIS_HDRS})

target_include_directories(qgis_analysis PUBLIC
${CMAKE_SOURCE_DIR}/src/analysis
${CMAKE_SOURCE_DIR}/src/analysis/interpolation
${CMAKE_SOURCE_DIR}/src/analysis/mesh
${CMAKE_SOURCE_DIR}/src/analysis/network
${CMAKE_SOURCE_DIR}/src/analysis/processing
${CMAKE_SOURCE_DIR}/src/analysis/raster
${CMAKE_SOURCE_DIR}/src/analysis/vector/
${CMAKE_SOURCE_DIR}/src/analysis/vector/geometry_checker

${CMAKE_BINARY_DIR}/src/analysis
)

target_include_directories(qgis_analysis SYSTEM PUBLIC
${EXIV2_INCLUDE_DIR}
)

GENERATE_EXPORT_HEADER(
qgis_analysis
BASE_NAME ANALYSIS

0 comments on commit ed155de

Please sign in to comment.
You can’t perform that action at this time.