Skip to content

Commit

Permalink
Fix #202, update cmake recipe
Browse files Browse the repository at this point in the history
Prefer target-scope properties over directory scope where applicable
  • Loading branch information
jphickey committed Apr 6, 2023
1 parent a410436 commit 2bef88c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
project(CFE_SAMPLE_APP C)

include_directories(fsw/mission_inc)
include_directories(fsw/platform_inc)

# Create the app module
add_cfe_app(sample_app fsw/src/sample_app.c)

Expand All @@ -11,7 +8,12 @@ add_cfe_app(sample_app fsw/src/sample_app.c)
add_cfe_app_dependency(sample_app sample_lib)

# Add table
add_cfe_tables(sampleAppTable fsw/tables/sample_app_tbl.c)
add_cfe_tables(sample_app fsw/tables/sample_app_tbl.c)

target_include_directories(sample_app PUBLIC
fsw/mission_inc
fsw/platform_inc
)

# If UT is enabled, then add the tests from the subdirectory
# Note that this is an app, and therefore does not provide
Expand Down

0 comments on commit 2bef88c

Please sign in to comment.