summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-09-23 00:33:33 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-09-23 00:33:33 -0500
commit500e1f9892dd41419663e9f72cf47bab5b2aca0b (patch)
treea0709693d5317a6b89cdda7ac3143886b93552f4 /CMakeLists.txt
parentfa4b4097d3283e1d6e6376c70910e245f0b1f6ec (diff)
Saving work.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt36
1 files changed, 22 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbcbf38..060e8db 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,29 +1,37 @@
cmake_minimum_required(VERSION 3.16)
-project(getsuyomi VERSION 1.0.0 LANGUAGES CXX)
+project(bookmouse VERSION 1.0.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
-find_package(Qt6 REQUIRED COMPONENTS Widgets)
-qt_standard_project_setup()
-
set(CXX_CPPCHECK "project=build/compile_commands.json;enable=information;force")
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
-qt_add_executable(getsuyomi
- src/main_window.cpp
+add_executable(bookmouse
src/main.cpp
src/archive.cpp
- src/getsuyomi.cpp
+ src/image.cpp
+ src/fud_mem.cpp
+ src/stb_image.cpp
+# src/main_window.cpp
+# src/bookmouse.cpp
)
-# find_dependency(minizip-ng REQUIRED)
+include(warnings.cmake)
+
+find_package(spdlog REQUIRED)
+find_package(Fud REQUIRED)
-target_include_directories(getsuyomi PRIVATE libzip)
-target_link_libraries(getsuyomi PRIVATE Qt6::Widgets zip)
+target_include_directories(bookmouse PRIVATE
+ ${FUD_INCLUDE_DIR}
+ ${spdlog_INCLUDE_DIR}
+)
+
+target_link_libraries(bookmouse PRIVATE
+ zip
+ spdlog::spdlog
+ fud
+)
-# set_target_properties(getsuyomi PROPERTIES
-# WIN32_EXECUTABLE ON
-# MACOSX_BUNDLE ON
-#)
+target_compile_options(bookmouse PRIVATE ${BOOKMOUSE_WARNINGS})