Skip to content

Commit

Permalink
Merge pull request #4 from nasa/feature/add_cmake
Browse files Browse the repository at this point in the history
Add CmakeLists.txt
  • Loading branch information
jtovias authored Apr 24, 2018
2 parents 408f840 + d352fc3 commit 4589edb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 2.6.4)
project(TO C)

include_directories(fsw/mission_inc)
include_directories(fsw/platform_inc)
include_directories(fsw/src)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${ci_MISSION_DIR}/fsw/platform_inc)
include_directories(${ci_MISSION_DIR}/fsw/mission_inc)
include_directories(${ci_MISSION_DIR}/fsw/src)
include_directories(${io_lib_MISSION_DIR}/fsw/public_inc/)

include_directories(${MISSION_SOURCE_DIR}/apps/inc)
include_directories(${MISSION_SOURCE_DIR}/apps/cf/fsw/platform_inc)
include_directories(${MISSION_SOURCE_DIR}/apps/sch/fsw/platform_inc)
include_directories(${MISSION_SOURCE_DIR}/apps/hs/fsw/platform_inc)
include_directories(${MISSION_SOURCE_DIR}/apps/hk/fsw/platform_inc)

aux_source_directory(fsw/src APP_SRC_FILES)

# Create the app module
add_cfe_app(to ${APP_SRC_FILES})

if (COMMAND add_cfe_tables)
include_directories(fsw/tables)
aux_source_directory(fsw/tables APP_TBL_FILES)
add_cfe_tables(to fsw/tables/to_config.c)
endif(COMMAND add_cfe_tables)

0 comments on commit 4589edb

Please sign in to comment.