cmake_minimum_required(VERSION 3.16) project(bookmouse VERSION 1.0.0 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CXX_CPPCHECK "project=build/compile_commands.json;enable=information;force") set(CMAKE_EXPORT_COMPILE_COMMANDS true) add_executable(bookmouse src/main.cpp src/archive.cpp src/image.cpp src/fud_mem.cpp src/stb_image.cpp # src/main_window.cpp # src/bookmouse.cpp ) include(warnings.cmake) find_package(spdlog REQUIRED) find_package(Fud REQUIRED) target_include_directories(bookmouse PRIVATE ${FUD_INCLUDE_DIR} ${spdlog_INCLUDE_DIR} ) target_link_libraries(bookmouse PRIVATE zip spdlog::spdlog fud ) target_compile_options(bookmouse PRIVATE ${BOOKMOUSE_WARNINGS})