blob: 060e8db265182d38dac1b8ca25e557b6e9f49410 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
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})
|