From e26204117372b88b44db39781fd09d57fa7e1882 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Thu, 6 Apr 2023 12:06:44 -0400 Subject: [PATCH] Fix #135, update cmake recipe Prefer target-scope properties over directory scope where applicable --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9070c2a..e4b2e8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,14 @@ cmake_minimum_required(VERSION 3.5) project(CFS_CI_LAB C) -include_directories(fsw/mission_inc) -include_directories(fsw/platform_inc) - -aux_source_directory(fsw/src APP_SRC_FILES) +set(APP_SRC_FILES + fsw/src/ci_lab_app.c +) # Create the app module add_cfe_app(ci_lab ${APP_SRC_FILES}) +target_include_directories(ci_lab PUBLIC + fsw/mission_inc + fsw/platform_inc +)