From 417004e9d734fb882922214a428e9842a2800bbe Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 16 Nov 2023 21:10:04 +0100 Subject: [PATCH] Move tgl to tgl subdirectory, and use target_include_directories --- CMakeLists.txt | 4 ++-- LEGO1/{ => tgl}/tgl.h | 0 LEGO1/{ => tgl}/tglvector.h | 0 LEGO1/viewroi.h | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename LEGO1/{ => tgl}/tgl.h (100%) rename LEGO1/{ => tgl}/tglvector.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index d94e3bb5..6d7a1e07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,8 +218,8 @@ if (MINGW) endif() # Additional include directories -include_directories("${CMAKE_SOURCE_DIR}/3rdparty/vec") -include_directories("${CMAKE_SOURCE_DIR}/3rdparty/smk") +target_include_directories(lego1 PUBLIC "${CMAKE_SOURCE_DIR}/3rdparty/vec") +target_include_directories(lego1 PRIVATE "${CMAKE_SOURCE_DIR}/3rdparty/smk") if (ISLE_USE_SMARTHEAP) add_library(SmartHeap::SmartHeap STATIC IMPORTED) diff --git a/LEGO1/tgl.h b/LEGO1/tgl/tgl.h similarity index 100% rename from LEGO1/tgl.h rename to LEGO1/tgl/tgl.h diff --git a/LEGO1/tglvector.h b/LEGO1/tgl/tglvector.h similarity index 100% rename from LEGO1/tglvector.h rename to LEGO1/tgl/tglvector.h diff --git a/LEGO1/viewroi.h b/LEGO1/viewroi.h index 48b1510e..1104e1f5 100644 --- a/LEGO1/viewroi.h +++ b/LEGO1/viewroi.h @@ -2,7 +2,7 @@ #define VIEWROI_H #include "orientableroi.h" -#include "tgl.h" +#include "tgl/tgl.h" #include "viewlodlist.h" /*