45 lines
938 B
CMake
45 lines
938 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
project(fsctl)
|
|
|
|
include(GenerateG3A)
|
|
find_package(Gint 2.9 REQUIRED)
|
|
|
|
set(SOURCES
|
|
src/main.c
|
|
|
|
# fugue
|
|
src/fugue/dir.c
|
|
src/fugue/mount.c
|
|
src/fugue/logger.c
|
|
src/fugue/core/cluster.c
|
|
src/fugue/core/sector.c
|
|
src/fugue/core/fat.c
|
|
src/fugue/core/dirent.c
|
|
|
|
# menu
|
|
src/menu/rom.c
|
|
src/menu/info.c
|
|
src/menu/fat.c
|
|
src/menu/list.c
|
|
src/menu/test.c
|
|
|
|
#utils
|
|
src/utils/fs_table.c
|
|
)
|
|
|
|
add_executable(fsctl ${SOURCES})
|
|
target_compile_options(fsctl PRIVATE -Wall -Wextra -Os)
|
|
target_link_libraries(fsctl Gint::Gint)
|
|
target_include_directories(fsctl PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
|
|
if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G)
|
|
message(FATAL_ERROR "not supported device for now")
|
|
elseif("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50)
|
|
generate_g3a(
|
|
TARGET fsctl
|
|
OUTPUT "fsctl.g3a"
|
|
NAME "fsctl"
|
|
ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png
|
|
)
|
|
endif()
|