text-viewer/CMakeLists.txt

27 lines
705 B
CMake

# 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.15)
project(CGTextViewer)
include(GenerateG3A)
include(Fxconv)
find_package(Gint 2.9 REQUIRED)
find_package(JustUI 1.3 REQUIRED)
set(SOURCES
src/main.c
src/vtext.c)
set(ASSETS
assets-cg/uf5x7
assets-cg/uf8x9)
fxconv_declare_assets(${ASSETS} WITH_METADATA)
add_executable(myaddin ${SOURCES} ${ASSETS})
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os)
target_link_libraries(myaddin JustUI::JustUI Gint::Gint)
generate_g3a(TARGET myaddin OUTPUT "TextView.g3a"
NAME "TextViewer" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png)