2019-04-30 05:28:51 +00:00
|
|
|
# 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)
|
|
|
|
|
2019-08-11 06:43:00 +00:00
|
|
|
add_application(MemeveyPro
|
2019-04-30 05:28:51 +00:00
|
|
|
constants.h
|
2019-08-17 06:45:09 +00:00
|
|
|
main.cpp
|
|
|
|
MainApp.cpp
|
2019-04-30 05:28:51 +00:00
|
|
|
dialog.r
|
|
|
|
menus.r
|
|
|
|
pika.r
|
2019-08-17 06:45:09 +00:00
|
|
|
markov.h
|
|
|
|
Autojerk.r
|
|
|
|
Autojerk.cpp
|
|
|
|
Error.cpp
|
2019-04-30 05:28:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Enable -ffunction-sections and -gc-sections to make the app as small as possible
|
|
|
|
# On 68K, also enable --mac-single to build it as a single-segment app (so that this code path doesn't rot)
|
2019-08-11 06:43:00 +00:00
|
|
|
set_target_properties(MemeveyPro PROPERTIES COMPILE_OPTIONS -ffunction-sections)
|
2019-04-30 05:28:51 +00:00
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
2019-08-11 06:43:00 +00:00
|
|
|
set_target_properties(MemeveyPro PROPERTIES LINK_FLAGS "-Wl,-gc-sections -Wl,--mac-single")
|
2019-04-30 05:28:51 +00:00
|
|
|
|
|
|
|
else()
|
2019-08-11 06:43:00 +00:00
|
|
|
set_target_properties(MemeveyPro PROPERTIES LINK_FLAGS "-Wl,-gc-sections")
|
2019-04-30 05:28:51 +00:00
|
|
|
endif()
|