mirror of
https://github.com/tschak909/platotermClassicMac.git
synced 2024-12-28 03:29:20 +00:00
28 lines
560 B
CMake
28 lines
560 B
CMake
|
|
# To use this example as a standalone project using CMake:
|
|
# mkdir build
|
|
# cd build
|
|
# cmake .. -DCMAKE_TOOLCHAIN_FILE=path/to/Retro68-build/toolchain/m68k-apple-macos/cmake/retro68.toolchain.cmake
|
|
# make
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
add_application(PLATOTERM
|
|
PLATOTERM.r
|
|
help.c
|
|
io.c
|
|
keyboard.c
|
|
main.c
|
|
protocol.c
|
|
screen.c
|
|
terminal.c
|
|
touch.c
|
|
trace.c
|
|
CREATOR "PLTO"
|
|
)
|
|
target_link_libraries(PLATOTERM "-lm")
|
|
|
|
# save 200KB of code by removing unused stuff
|
|
set_target_properties(PLATOTERM PROPERTIES LINK_FLAGS "-Wl,-gc-sections")
|
|
|