blob: ac949642df75b4df179673caa6e66b2ebf75b657 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
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
src/settings.cpp
src/config.cpp
src/luacxx.cpp
)
include(warnings.cmake)
target_compile_options(getsuyomi PRIVATE ${GETSUYOMI_WARNINGS})
find_package(Fud REQUIRED)
find_package(Lua REQUIRED)
find_package(libzip REQUIRED)
target_include_directories(getsuyomi PRIVATE
${libzip_INCLUDE_DIR}
${FUD_INCLUDE_DIR}
${LUA_INCLUDE_DIR}
)
# message(FATAL_ERROR "WHAT ${LUA_LIBRARIES}")
target_link_libraries(getsuyomi PRIVATE
Qt6::Widgets
libzip::zip
fud)
target_link_libraries(getsuyomi PRIVATE "${LUA_LIBRARIES}")
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
#)
add_subdirectory(resources)
|