From 500e1f9892dd41419663e9f72cf47bab5b2aca0b Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 23 Sep 2024 00:33:33 -0500 Subject: Saving work. --- CMakeLists.txt | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'CMakeLists.txt') 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}) -- cgit v1.2.3