mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
84 lines
1.9 KiB
CMake
84 lines
1.9 KiB
CMake
set(CONNECTION_SOURCES)
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES RetroCarbon)
|
|
else()
|
|
list(APPEND CONNECTION_SOURCES
|
|
SerialConnectionProvider.h
|
|
SerialConnectionProvider.cc
|
|
MacSerialStream.h
|
|
MacSerialStream.cc
|
|
|
|
MacTCPStream.h
|
|
MacTCPStream.cc
|
|
TCPConnectionProvider.h
|
|
TCPConnectionProvider.cc
|
|
)
|
|
endif()
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
|
else()
|
|
list(APPEND CONNECTION_SOURCES
|
|
OpenTptStream.h
|
|
OpenTptStream.cc
|
|
OpenTptConnectionProvider.h
|
|
OpenTptConnectionProvider.cc
|
|
)
|
|
endif()
|
|
|
|
|
|
add_application(LaunchAPPLServer
|
|
TYPE "APPL"
|
|
CREATOR "R68L"
|
|
|
|
LaunchAPPLServer.r
|
|
LauncherIcon.r
|
|
LaunchAPPLServer.cc
|
|
AppLauncher.h
|
|
AppLauncher.cc
|
|
ToolLauncher.cc
|
|
Window.h
|
|
StatusDisplay.h
|
|
StatusDisplay.cc
|
|
AboutBox.h
|
|
AboutBox.cc
|
|
ConnectionProvider.h
|
|
CarbonFileCompat.h
|
|
|
|
${CONNECTION_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(LaunchAPPLServer LaunchAPPLCommon)
|
|
set_target_properties(LaunchAPPLServer PROPERTIES
|
|
CXX_STANDARD 17
|
|
)
|
|
target_compile_options(LaunchAPPLServer PRIVATE -ffunction-sections -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()
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES RetroPPC)
|
|
target_link_libraries(LaunchAPPLServer -lOpenTransportAppPPC -lOpenTransportLib -lOpenTptInternetLib )
|
|
endif()
|
|
|
|
if(FALSE)
|
|
add_application(tcptest
|
|
CONSOLE
|
|
|
|
|
|
tcptest.cc
|
|
)
|
|
|
|
target_link_libraries(tcptest LaunchAPPLCommon)
|
|
set_target_properties(tcptest PROPERTIES
|
|
CXX_STANDARD 17
|
|
LINK_FLAGS "-Wl,-gc-sections"
|
|
)
|
|
|
|
endif()
|