diff --git a/CMakeLists.txt b/CMakeLists.txt index e061df1..51246a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,5 @@ project(CFS_CS C) -include_directories(fsw/src) -include_directories(fsw/mission_inc) -include_directories(fsw/platform_inc) - set(APP_SRC_FILES fsw/src/cs_cmds.c fsw/src/cs_table_processing.c @@ -20,6 +16,9 @@ set(APP_SRC_FILES # Create the app module add_cfe_app(cs ${APP_SRC_FILES}) +# This permits direct access to public headers in the fsw/inc directory +target_include_directories(cs PUBLIC fsw/inc) + set(APP_TABLE_FILES fsw/tables/cs_apptbl.c fsw/tables/cs_eepromtbl.c diff --git a/fsw/src/cs_events.h b/fsw/inc/cs_events.h similarity index 100% rename from fsw/src/cs_events.h rename to fsw/inc/cs_events.h diff --git a/fsw/mission_inc/cs_mission_cfg.h b/fsw/inc/cs_mission_cfg.h similarity index 100% rename from fsw/mission_inc/cs_mission_cfg.h rename to fsw/inc/cs_mission_cfg.h diff --git a/fsw/src/cs_msg.h b/fsw/inc/cs_msg.h similarity index 100% rename from fsw/src/cs_msg.h rename to fsw/inc/cs_msg.h diff --git a/fsw/src/cs_msgdefs.h b/fsw/inc/cs_msgdefs.h similarity index 100% rename from fsw/src/cs_msgdefs.h rename to fsw/inc/cs_msgdefs.h diff --git a/fsw/platform_inc/cs_msgids.h b/fsw/inc/cs_msgids.h similarity index 100% rename from fsw/platform_inc/cs_msgids.h rename to fsw/inc/cs_msgids.h diff --git a/fsw/mission_inc/cs_perfids.h b/fsw/inc/cs_perfids.h similarity index 100% rename from fsw/mission_inc/cs_perfids.h rename to fsw/inc/cs_perfids.h diff --git a/fsw/platform_inc/cs_platform_cfg.h b/fsw/inc/cs_platform_cfg.h similarity index 100% rename from fsw/platform_inc/cs_platform_cfg.h rename to fsw/inc/cs_platform_cfg.h diff --git a/fsw/src/cs_tbldefs.h b/fsw/inc/cs_tbldefs.h similarity index 100% rename from fsw/src/cs_tbldefs.h rename to fsw/inc/cs_tbldefs.h diff --git a/unit-test/CMakeLists.txt b/unit-test/CMakeLists.txt index 25c7a64..4593791 100644 --- a/unit-test/CMakeLists.txt +++ b/unit-test/CMakeLists.txt @@ -24,8 +24,10 @@ add_cfe_coverage_stubs("cs_internal" # Link with the cfe core stubs and unit test assert libs target_link_libraries(coverage-cs_internal-stubs ut_core_api_stubs ut_assert) -# Include and expose unit test utilities includes +# Include and expose unit test utilities, fsw/inc, and fsw/src includes target_include_directories(coverage-cs_internal-stubs PUBLIC utilities) +target_include_directories(coverage-cs_internal-stubs PUBLIC ../fsw/inc) +target_include_directories(coverage-cs_internal-stubs PUBLIC ../fsw/src) # Generate a dedicated "testrunner" executable for each test file # Accomplish this by cycling through all the app's source files, there must be