2022-06-17 23:03:27 +02:00
|
|
|
# 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(HexEdit)
|
|
|
|
|
|
|
|
include(GenerateG3A)
|
|
|
|
include(Fxconv)
|
|
|
|
find_package(Gint 2.8 REQUIRED)
|
|
|
|
find_package(JustUI 1.0 REQUIRED)
|
|
|
|
|
|
|
|
set(SOURCES
|
2022-06-18 19:17:31 +02:00
|
|
|
src/buffer.c
|
2022-06-19 23:50:08 +02:00
|
|
|
src/heditor.c
|
2022-06-24 21:08:47 +02:00
|
|
|
src/hlist.c
|
2022-06-17 23:03:27 +02:00
|
|
|
src/main.c
|
2022-06-18 19:17:31 +02:00
|
|
|
src/source.c
|
2022-06-23 20:40:23 +02:00
|
|
|
src/source-lazy-file.c
|
2022-06-18 19:17:31 +02:00
|
|
|
src/source-loaded-file.c
|
2022-06-24 21:08:47 +02:00
|
|
|
src/source-memory.c
|
2022-06-23 14:04:52 +02:00
|
|
|
src/util.c
|
2022-06-17 23:03:27 +02:00
|
|
|
)
|
|
|
|
set(ASSETS
|
|
|
|
)
|
|
|
|
|
|
|
|
fxconv_declare_assets(${ASSETS} WITH_METADATA)
|
|
|
|
|
|
|
|
add_executable(hexedit ${SOURCES} ${ASSETS})
|
|
|
|
target_compile_options(hexedit PRIVATE -Wall -Wextra -Os)
|
|
|
|
target_link_libraries(hexedit JustUI::JustUI Gint::Gint)
|
|
|
|
|
|
|
|
generate_g3a(TARGET hexedit OUTPUT "HexEdit.g3a"
|
2022-06-20 02:51:24 +02:00
|
|
|
NAME "Hex Editor" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png)
|