2021-01-09 22:22:40 +00:00
|
|
|
# ssheven
|
|
|
|
#
|
2022-08-21 16:18:00 +01:00
|
|
|
# Copyright (c) 2021 by cy384 <cy384@cy384.com>
|
2021-01-09 22:22:40 +00:00
|
|
|
# See LICENSE file for details
|
|
|
|
|
2020-06-08 17:53:38 +01:00
|
|
|
cmake_minimum_required(VERSION 3.9)
|
|
|
|
|
2021-11-22 04:23:15 +00:00
|
|
|
project(ssheven)
|
2021-01-09 22:22:40 +00:00
|
|
|
add_application(ssheven CREATOR "SSH7" ssheven.c ssheven-console.c ssheven.r ssheven-net.c ssheven-debug.c)
|
2020-06-08 17:53:38 +01:00
|
|
|
|
|
|
|
IF(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
|
|
|
# for 68k
|
2020-12-28 02:16:07 +00:00
|
|
|
set_target_properties(ssheven PROPERTIES COMPILE_FLAGS "-ffunction-sections -mcpu=68020 -O3 -Wall -Wextra -Wno-unused-parameter")
|
2020-07-24 00:44:29 +01:00
|
|
|
set_target_properties(ssheven PROPERTIES LINK_FLAGS "-Wl,-gc-sections -Wl,--mac-segments -Wl,${CMAKE_CURRENT_SOURCE_DIR}/ssheven.segmap")
|
2020-09-13 01:16:51 +01:00
|
|
|
target_link_libraries(ssheven ssh2 mbedtls mbedx509 mbedcrypto OpenTransportApp OpenTransport OpenTptInet vterm retrocrt)
|
2020-06-08 17:53:38 +01:00
|
|
|
ELSE()
|
|
|
|
# for PPC
|
2022-08-21 16:18:00 +01:00
|
|
|
set_target_properties(ssheven PROPERTIES COMPILE_FLAGS "-ffunction-sections -mcpu=601 -O3 -Wall -Wextra -Wno-unused-parameter")
|
2020-06-08 17:53:38 +01:00
|
|
|
set_target_properties(ssheven PROPERTIES LINK_FLAGS "-Wl,-gc-sections")
|
2020-09-13 01:16:51 +01:00
|
|
|
target_link_libraries(ssheven ThreadsLib ssh2 mbedtls mbedx509 mbedcrypto OpenTransportAppPPC OpenTransportLib OpenTptInternetLib vterm retrocrt)
|
2020-06-08 17:53:38 +01:00
|
|
|
ENDIF()
|
|
|
|
|