Retro68/LaunchAPPL/Server/CMakeLists.txt

32 lines
849 B
CMake
Raw Normal View History

add_application(LaunchAPPLServer
2018-05-06 00:02:29 +00:00
TYPE "APPL"
CREATOR "R68L"
LaunchAPPLServer.r
2018-05-06 00:02:29 +00:00
LauncherIcon.r
LaunchAPPLServer.cc
MacSerialStream.h
MacSerialStream.cc
AppLauncher.h
AppLauncher.cc
ToolLauncher.cc
StatusDisplay.h
StatusDisplay.cc
)
2018-04-20 22:03:29 +00:00
target_link_libraries(LaunchAPPLServer LaunchAPPLCommon)
set_target_properties(LaunchAPPLServer PROPERTIES
CXX_STANDARD 17
)
target_compile_options(LaunchAPPLServer PRIVATE -ffunction-sections -fno-exceptions -Os)
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
set_target_properties(LaunchAPPLServer PROPERTIES
LINK_FLAGS "-Wl,-gc-sections -Wl,--mac-segments -Wl,${CMAKE_CURRENT_SOURCE_DIR}/LaunchAPPLServer.segmap"
)
else()
set_target_properties(LaunchAPPLServer PROPERTIES
LINK_FLAGS "-Wl,-gc-sections"
)
endif()