blob: 9d67a2b050cf2e54ba01ded446814f08426ba390 [file] [log] [blame]
# Generated 2017-02-16 14:58:01
cmake_minimum_required(VERSION 2.8.7)
set(TARGET TopMain)
project(${TARGET})
# require location of supporting RTS
if (NOT UMLRTS_ROOT)
if (DEFINED ENV{UMLRTS_ROOT})
set(UMLRTS_ROOT $ENV{UMLRTS_ROOT})
else ()
set(UMLRTS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/umlrt.rts)
endif ()
endif ()
# setup primary envars - provides tooling config
include(${UMLRTS_ROOT}/build/buildenv.cmake)
# model sources
set(SRCS TopMain.cc PingPongProtocol.cc Pinger.cc Ponger.cc Top.cc TopControllers.cc UtilityMacros.cc )
# specify target
add_executable(${TARGET} ${SRCS})
# setup lib dependency support after defining TARGET
include(${UMLRTS_ROOT}/build/rtslib.cmake)
# compiler parameters
set_target_properties(${TARGET} PROPERTIES COMPILE_OPTIONS "${COPTS}")
set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "${CDEFS}")
include_directories(${INCS})
# linker parameters
set_target_properties(${TARGET} PROPERTIES CMAKE_EXE_LINKER_FLAGS "${LOPTS}")
target_link_libraries(${TARGET} ${LIBS})