CMakeLists.txt
ASCII text
1
cmake_minimum_required(VERSION 3.30)
2
project(gpanthera)
3
4
set(CMAKE_CXX_STANDARD 20)
5
6
add_library(gpanthera SHARED gpanthera.cc)
7
8
add_executable(panthera-www panthera-www.cc)
9
target_link_libraries(panthera-www gpanthera)
10
target_link_libraries(panthera-www webkitgtk-6.0)
11
target_link_libraries(panthera-www nlohmann_json::nlohmann_json)
12
13
find_package(PkgConfig REQUIRED)
14
pkg_check_modules(GTKMM REQUIRED gtkmm-4.0)
15
pkg_check_modules(WebKit REQUIRED webkitgtk-6.0)
16
find_package(nlohmann_json 3.10.0 REQUIRED)
17
18
include_directories(${GTKMM_INCLUDE_DIRS})
19
link_directories(${GTKMM_LIBRARY_DIRS})
20
include_directories(${WebKit_INCLUDE_DIRS})
21
22
add_definitions(${GTKMM_CFLAGS_OTHER})
23
target_link_libraries(gpanthera ${GTKMM_LIBRARIES})
24
25
file(COPY locales DESTINATION ${CMAKE_BINARY_DIR})
26