-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from jphickey/fix-109-cmake-recipe
Fix #149, update cmake recipe
- Loading branch information
Showing
2 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(CFS_TO_LAB C) | ||
|
||
# Include source directory for table use | ||
include_directories(fsw/src) | ||
# These references are specifically needed for the table build | ||
# it is easiest to add them as directory properties so they won't | ||
# be considered include directories for TO_LAB itself. | ||
include_directories( | ||
$<TARGET_PROPERTY:ci_lab,INTERFACE_INCLUDE_DIRECTORIES> | ||
$<TARGET_PROPERTY:sample_app,INTERFACE_INCLUDE_DIRECTORIES> | ||
) | ||
|
||
include_directories(fsw/mission_inc) | ||
include_directories(fsw/platform_inc) | ||
include_directories(${ci_lab_MISSION_DIR}/fsw/platform_inc) | ||
include_directories(${sample_app_MISSION_DIR}/fsw/platform_inc) | ||
|
||
aux_source_directory(fsw/src APP_SRC_FILES) | ||
set(APP_SRC_FILES | ||
fsw/src/to_lab_app.c | ||
) | ||
|
||
# Create the app module | ||
add_cfe_app(to_lab ${APP_SRC_FILES}) | ||
add_cfe_tables(to_lab fsw/tables/to_lab_sub.c) | ||
|
||
add_cfe_tables(TO_LAB_Subs fsw/tables/to_lab_sub.c) | ||
|
||
target_include_directories(to_lab PUBLIC | ||
fsw/mission_inc | ||
fsw/platform_inc | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters