Rework CMakeLists.txt so project is compiled without intermediary libraries.

This commit is contained in:
2021-04-24 20:26:43 +01:00
parent ea076dc481
commit 9c8a39d61e
14 changed files with 113 additions and 155 deletions

View File

@@ -26,18 +26,7 @@ if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "AmigaOS|MorphOS" AND NOT AROS)
return()
endif()
project(
fssetter-amiga
DESCRIPTION "Filesystem test creator for AmigaOS and compatibles"
LANGUAGES C)
add_sub_definitions(__USE_INLINE__)
add_sub_definitions(__USE_BASETYPE__)
add_definitions(-D__USE_INLINE__)
add_definitions(-D__USE_BASETYPE__)
set(PLATFORM_SOURCES attr.c deleted.c dirdepth.c filename.c files.c frag.c links.c os.c perms.c perms.h rsrcfork.c sparse.c time.c time.h volume.c xattr.c)
set(EXECUTABLE_NAME "fssetter-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
add_executable(${EXECUTABLE_NAME} ${PLATFORM_SOURCES})
target_link_libraries(${EXECUTABLE_NAME} core)
add_sources(attr.c deleted.c dirdepth.c filename.c files.c frag.c links.c os.c perms.c perms.h rsrcfork.c sparse.c time.c time.h volume.c xattr.c)