cmake_minimum_required(VERSION 3.16) project(getsuyomi 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 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 ${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 # MACOSX_BUNDLE ON #)