##// END OF EJS Templates
added prefix to FSW and timegen options
added prefix to FSW and timegen options

File last commit:

r304:04c5ed6433df R3_plus
r304:04c5ed6433df R3_plus
Show More
CMakeLists.txt
82 lines | 2.1 KiB | text/plain | CMakeLexer
cmake_minimum_required (VERSION 2.6)
project (FSW)
include(sparc-rtems)
include_directories("../header"
"../header/lfr_common_headers"
"../header/processing"
"../LFR_basic-parameters"
"../src")
set(SOURCES wf_handler.c
tc_handler.c
fsw_misc.c
fsw_init.c
fsw_globals.c
fsw_spacewire.c
tc_load_dump_parameters.c
tm_lfr_tc_exe.c
tc_acceptance.c
processing/fsw_processing.c
processing/avf0_prc0.c
processing/avf1_prc1.c
processing/avf2_prc2.c
lfr_cpu_usage_report.c
${LFR_BP_SRC}
)
option(FSW_verbose "Enable verbose LFR" ON)
option(FSW_boot_messages "Enable LFR boot messages" ON)
option(FSW_debug_messages "Enable LFR debug messages" ON)
option(FSW_cpu_usage_report "Enable LFR cpu usage report" OFF)
option(FSW_stack_report "Enable LFR stack report" OFF)
option(FSW_vhdl_dev "?" OFF)
option(FSW_lpp_dpu_destid "Set to debug at LPP" ON)
option(FSW_debug_watchdog "Enable debug watchdog" OFF)
option(FSW_debug_tch "?" OFF)
set(SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE)
set(SW_VERSION_N2 "1" CACHE STRING "Choose N2 FSW Version." FORCE)
set(SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE)
set(SW_VERSION_N4 "4" CACHE STRING "Choose N4 FSW Version." FORCE)
if(FSW_verbose)
add_definitions(-DPRINT_MESSAGES_ON_CONSOLE)
endif()
if(FSW_boot_messages)
add_definitions(-DBOOT_MESSAGES)
endif()
if(FSW_debug_messages)
add_definitions(-DDEBUG_MESSAGES)
endif()
if(FSW_cpu_usage_report)
add_definitions(-DPRINT_TASK_STATISTICS)
endif()
if(FSW_stack_report)
add_definitions(-DPRINT_STACK_REPORT)
endif()
if(FSW_vhdl_dev)
add_definitions(-DVHDL_DEV)
endif()
if(FSW_lpp_dpu_destid)
add_definitions(-DLPP_DPU_DESTID)
endif()
if(FSW_debug_watchdog)
add_definitions(-DDEBUG_WATCHDOG)
endif()
if(FSW_debug_tch)
add_definitions(-DDEBUG_TCH)
endif()
add_definitions(-DMSB_FIRST_TCH)
add_definitions(-DSWVERSION=-1-0)
add_definitions(-DSW_VERSION_N1=${SW_VERSION_N1})
add_definitions(-DSW_VERSION_N2=${SW_VERSION_N2})
add_definitions(-DSW_VERSION_N3=${SW_VERSION_N3})
add_definitions(-DSW_VERSION_N4=${SW_VERSION_N4})
add_executable(FSW ${SOURCES})