CMake: Replace include_directories with target_include_directories

This commit is contained in:
wmayer
2025-07-31 15:57:16 +02:00
committed by Ladislav Michl
parent 7e57b6e7b0
commit 93db4c7d8a
45 changed files with 499 additions and 334 deletions

View File

@@ -11,7 +11,9 @@ if(BUILD_TRACY_FRAME_PROFILER)
add_definitions(-DBUILD_TRACY_FRAME_PROFILER)
endif()
include_directories(
target_include_directories(
FreeCADBase
PRIVATE
${CMAKE_BINARY_DIR}/src
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
@@ -25,6 +27,7 @@ target_include_directories(
${Boost_INCLUDE_DIRS}
${PYCXX_INCLUDE_DIR}
${Python3_INCLUDE_DIRS}
${QtCore_INCLUDE_DIRS}
${XercesC_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIR}
${ZIPIOS_INCLUDES}
@@ -73,10 +76,6 @@ else(MSVC)
)
endif(MSVC)
include_directories(
${QtCore_INCLUDE_DIRS}
)
if(BUILD_TRACY_FRAME_PROFILER)
list(APPEND FreeCADBase_LIBS TracyClient)
endif()