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