mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-25 09:30:58 +00:00
cmake build for retro apps
This commit is contained in:
parent
6b484b5f72
commit
e4c12180fa
7
App2/CMakeLists.txt
Normal file
7
App2/CMakeLists.txt
Normal 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
11
retro68.toolchain.cmake
Normal 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")
|
Loading…
Reference in New Issue
Block a user