cmake build for retro apps

This commit is contained in:
Wolfgang Thaller 2012-03-29 21:59:18 +02:00
parent 6b484b5f72
commit e4c12180fa
2 changed files with 18 additions and 0 deletions

7
App2/CMakeLists.txt Normal file
View File

@ -0,0 +1,7 @@
set(CMAKE_CXX_FLAGS "-std=c++11")
add_executable(Test test.cc Console.cc)
add_custom_command(
OUTPUT Test.dsk
COMMAND ${MAKE_APPL} -c Test
DEPENDS Test)
add_custom_target(TestAPPL ALL DEPENDS Test.dsk)

11
retro68.toolchain.cmake Normal file
View File

@ -0,0 +1,11 @@
set( CMAKE_SYSTEM_NAME Retro68 )
set( CMAKE_SYSTEM_VERSION 1)
set( RETRO68_ROOT "" CACHE PATH "path to root of Retro68 Toolchain" )
set( MAKE_APPL "${RETRO68_ROOT}/bin/MakeAPPL" )
set( CMAKE_C_COMPILER "${RETRO68_ROOT}/bin/m68k-unknown-elf-gcc" )
set( CMAKE_CXX_COMPILER "${RETRO68_ROOT}/bin/m68k-unknown-elf-g++" )
set( CMAKE_EXE_LINKER_FLAGS_INIT "-Wl,-elf2flt -Wl,-q -l:retrocrt.o")