summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-09-29 09:28:28 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-09-29 09:28:28 -0500
commit0e648c7c62944cd81aa57f10ac01cdabe2f2b7e0 (patch)
treea2a0912e33e7a18f6c9e32e5e4b5fb0a4ba622bc /CMakeLists.txt
parentfa4b4097d3283e1d6e6376c70910e245f0b1f6ec (diff)
Remember various settings.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt25
1 files changed, 23 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbcbf38..c609098 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,12 +16,33 @@ qt_add_executable(getsuyomi
src/main.cpp
src/archive.cpp
src/getsuyomi.cpp
+ src/fud_mem.cpp
)
+include(warnings.cmake)
+target_compile_options(getsuyomi PRIVATE ${GETSUYOMI_WARNINGS})
+
+find_package(Fud REQUIRED)
# find_dependency(minizip-ng REQUIRED)
-target_include_directories(getsuyomi PRIVATE libzip)
-target_link_libraries(getsuyomi PRIVATE Qt6::Widgets zip)
+target_include_directories(getsuyomi PRIVATE
+ # libzip
+ ${FUD_INCLUDE_DIR}
+ ${SDL2_INCLUDE_DIRS}
+)
+
+target_link_libraries(getsuyomi PRIVATE
+ Qt6::Widgets
+ zip
+ fud)
+
+set_target_properties(
+ getsuyomi PROPERTIES
+ CXX_STANDARD 20
+ C_STANDARD 23
+ CXX_EXTENSIONS OFF
+ C_EXTENSIONS OFF
+ CXX_STANDARD_REQUIRED ON)
# set_target_properties(getsuyomi PROPERTIES
# WIN32_EXECUTABLE ON