mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Add cmake file for cross compiling using Retro68.
This commit is contained in:
26
setter/src/macos/CMakeLists.txt
Normal file
26
setter/src/macos/CMakeLists.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Retro68" AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "RetroPPC")
|
||||
return()
|
||||
endif()
|
||||
|
||||
project(
|
||||
fssetter-macos
|
||||
DESCRIPTION "Filesystem test creator for MacOS"
|
||||
LANGUAGES C)
|
||||
|
||||
add_definitions(-Dmacintosh)
|
||||
|
||||
set(PLATFORM_SOURCES attr.c deleted.c dirdepth.c filename.c files.c frag.c links.c os.c perms.c rsrcfork.c sparse.c time.c volume.c xattr.c macos.h macos.r)
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Retro68")
|
||||
set(PROCESSOR "m68k")
|
||||
else()
|
||||
set(PROCESSOR "ppc")
|
||||
endif()
|
||||
|
||||
set(EXECUTABLE_NAME "fssetter-macos-${PROCESSOR}")
|
||||
|
||||
#add_application(${EXECUTABLE_NAME} ${PLATFORM_SOURCES})
|
||||
|
||||
#target_link_libraries(${EXECUTABLE_NAME} core)
|
||||
|
||||
add_application(${EXECUTABLE_NAME} ../main.c ${PLATFORM_SOURCES})
|
||||
Reference in New Issue
Block a user