From df14830bb389313455e3b6982a44e39289b70734 Mon Sep 17 00:00:00 2001 From: Travis Hunter Date: Mon, 13 Feb 2023 19:23:24 -0700 Subject: [PATCH] Fixed nested CMakeLists.txt with proper include search paths between sub directories --- CMakeLists.txt | 2 -- src/sim/CMakeLists.txt | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cc871a..2b0cfde 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,8 +23,6 @@ endif() enable_testing() -include_directories(".") - add_subdirectory(src/gui) add_subdirectory(src/sim) add_subdirectory(src/Utils) diff --git a/src/sim/CMakeLists.txt b/src/sim/CMakeLists.txt index 72bb603..7706fbf 100644 --- a/src/sim/CMakeLists.txt +++ b/src/sim/CMakeLists.txt @@ -4,3 +4,4 @@ add_library(sim WindModel.cpp USStandardAtmosphere.cpp) +target_include_directories(sim PRIVATE ${PROJECT_SOURCE_DIR}/src)