CMakeLists.txt
88 lines
| 2.5 KiB
| text/plain
|
CMakeLexer
/ timegen / CMakeLists.txt
r300 | cmake_minimum_required (VERSION 2.6) | |||
project (timegen) | ||||
include(sparc-rtems) | ||||
include_directories("./src" | ||||
"./header" | ||||
"./header/processing" | ||||
"./src/LFR_basic-parameters") | ||||
set(SOURCES src/tc_handler.c | ||||
src/fsw_misc.c | ||||
src/fsw_init.c | ||||
src/fsw_globals.c | ||||
src/fsw_spacewire.c | ||||
src/tc_acceptance.c | ||||
r303 | ../LFR_basic-parameters/basic_parameters.c | |||
header/tc_handler.h | ||||
header/grlib_regs.h | ||||
header/fsw_params.h | ||||
header/fsw_misc.h | ||||
header/fsw_init.h | ||||
header/ccsds_types.h | ||||
header/fsw_spacewire.h | ||||
header/tc_acceptance.h | ||||
header/fsw_params_nb_bytes.h | ||||
header/fsw_params_processing.h | ||||
header/fsw_params_wf_handler.h | ||||
header/lfr_cpu_usage_report.h | ||||
../LFR_basic-parameters/basic_parameters.h | ||||
../LFR_basic-parameters/basic_parameters_params.h | ||||
header/TC_types.h | ||||
) | ||||
r300 | ||||
r302 | option(timegen_verbose "Enable verbose Timegen" ON) | |||
option(timegen_boot_messages "Enable Timegen boot messages" ON) | ||||
option(timegen_debug_messages "Enable Timegen debug messages" ON) | ||||
option(timegen_cpu_usage_report "Enable Timegen cpu usage report" OFF) | ||||
option(timegen_stack_report "Enable Timegen stack report" OFF) | ||||
option(timegen_vhdl_dev "?" OFF) | ||||
option(timegen_lpp_dpu_destid "Set to debug at LPP" ON) | ||||
option(timegen_debug_watchdog "Enable debug watchdog" OFF) | ||||
option(timegen_debug_tch "?" OFF) | ||||
set(TIMEGEN_SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE) | ||||
set(TIMEGEN_SW_VERSION_N2 "1" CACHE STRING "Choose N2 FSW Version." FORCE) | ||||
set(TIMEGEN_SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE) | ||||
set(TIMEGEN_SW_VERSION_N4 "4" CACHE STRING "Choose N4 FSW Version." FORCE) | ||||
r300 | ||||
r302 | if (timegen_verbose) | |||
r300 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) | |||
endif() | ||||
r302 | if (timegen_boot_messages) | |||
r300 | add_definitions(-DBOOT_MESSAGES) | |||
endif() | ||||
r302 | if (timegen_debug_messages) | |||
r300 | add_definitions(-DDEBUG_MESSAGES) | |||
endif() | ||||
r302 | if (timegen_cpu_usage_report) | |||
r300 | add_definitions(-DPRINT_TASK_STATISTICS) | |||
endif() | ||||
r302 | if (timegen_stack_report) | |||
r300 | add_definitions(-DPRINT_STACK_REPORT) | |||
endif() | ||||
r302 | if (timegen_vhdl_dev) | |||
r300 | add_definitions(-DVHDL_DEV) | |||
endif() | ||||
r302 | if (timegen_lpp_dpu_destid) | |||
r300 | add_definitions(-DLPP_DPU_DESTID) | |||
endif() | ||||
r302 | if (timegen_debug_watchdog) | |||
r300 | add_definitions(-DDEBUG_WATCHDOG) | |||
endif() | ||||
r302 | if (timegen_debug_tch) | |||
r300 | add_definitions(-DDEBUG_TCH) | |||
endif() | ||||
add_definitions(-DMSB_FIRST_TCH) | ||||
add_definitions(-DSWVERSION=-1-0) | ||||
r302 | add_definitions(-DSW_VERSION_N1=${TIMEGEN_SW_VERSION_N1}) | |||
add_definitions(-DSW_VERSION_N2=${TIMEGEN_SW_VERSION_N2}) | ||||
add_definitions(-DSW_VERSION_N3=${TIMEGEN_SW_VERSION_N3}) | ||||
add_definitions(-DSW_VERSION_N4=${TIMEGEN_SW_VERSION_N4}) | ||||
r300 | ||||
add_executable(timegen ${SOURCES}) | ||||