From 5bc43ed888d425a42c2a58bab61a9ec2b4c53450 Mon Sep 17 00:00:00 2001 From: Sylvain PILLOT Date: Mon, 28 Feb 2022 17:58:37 +0100 Subject: [PATCH] Supprimer 'CMakeLists.txt' --- CMakeLists.txt | 85 -------------------------------------------------- 1 file changed, 85 deletions(-) delete mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index d8c755c..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,85 +0,0 @@ -# Configure with [fxsdk build-fx] or [fxsdk build-cg], which provide the -# toolchain file and module path of the fxSDK - -cmake_minimum_required(VERSION 3.18) -# replace this with your project's name -project(ProjectName C) - -include(GenerateG1A) -include(GenerateG3A) -include(Fxconv) -find_package(Gint 2.5 REQUIRED) - -# include directories, put your .h files in those folders -include_directories(include) - -# source files -set(SOURCES - src/main.c - src/sample.c - # ... -) -# shared assets -set(ASSETS - # ... -) -# fx-9860G-only assets (monochrome) -set(ASSETS_fx - assets-fx/example.png - # ... -) -# fx-CG-50-only assets (polychrome) -set(ASSETS_cg - assets-cg/example.png - # ... -) - -# Compile flags -set(FLAGS - # C standard, other values: c89, c99 - -std=c11 - - # general warnings - -Wall -Wextra -pedantic - - # enable this flag to stop compilation on warnings - #-Werror - - # specific warnings - # variable shadowing - -Wshadow - # switch/case safety - -Wswitch-default -Wswitch-enum - # unreachable code, bad 99% of the time - -Wunreachable-code - # prototypes warnings - -Wstrict-prototypes -Wmissing-prototypes - # function declaration - -Werror-implicit-function-declaration - - # optimisation level - # -Os: like -O2 without space-expensive optimizations - # -O2: good speed/size tradeoff - # -O3: gotta go fast - -Os -) - -fxconv_declare_assets(${ASSETS} ${ASSETS_fx} ${ASSETS_cg} WITH_METADATA) - -add_executable(Main ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}}) -target_compile_options(Main PRIVATE ${FLAGS}) -target_link_libraries(Main Gint::Gint) - -if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G) - generate_g1a( - TARGET Main - OUTPUT "${PROJECT_NAME}.g1a" - NAME "${PROJECT_NAME}" - ICON assets-fx/icon.png) -elseif("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50) - generate_g3a( - TARGET Main - OUTPUT "${PROJECT_NAME}.g3a" - NAME "${PROJECT_NAME}" - ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png) -endif()