mirror of
https://github.com/hyprwm/hyprgraphics.git
synced 2024-12-26 21:19:48 +01:00
CMake: bump C++ required ver, format
This commit is contained in:
parent
1e60e76382
commit
e01d1f8f54
1 changed files with 20 additions and 5 deletions
|
@ -7,7 +7,9 @@ add_compile_definitions(HYPRGRAPHICS_VERSION="${HYPRGRAPHICS_VERSION}")
|
||||||
project(
|
project(
|
||||||
hyprgraphics
|
hyprgraphics
|
||||||
VERSION ${HYPRGRAPHICS_VERSION}
|
VERSION ${HYPRGRAPHICS_VERSION}
|
||||||
DESCRIPTION "Small C++ library for graphics / resource utilities used across the Hypr* ecosystem")
|
DESCRIPTION
|
||||||
|
"Small C++ library for graphics / resource utilities used across the Hypr* ecosystem"
|
||||||
|
)
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
@ -18,7 +20,7 @@ set(LIBDIR ${CMAKE_INSTALL_FULL_LIBDIR})
|
||||||
|
|
||||||
configure_file(hyprgraphics.pc.in hyprgraphics.pc @ONLY)
|
configure_file(hyprgraphics.pc.in hyprgraphics.pc @ONLY)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 26)
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
|
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
|
||||||
message(STATUS "Configuring hyprgraphics in Debug")
|
message(STATUS "Configuring hyprgraphics in Debug")
|
||||||
|
@ -32,7 +34,19 @@ file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp" "include/*.hpp")
|
||||||
file(GLOB_RECURSE PUBLIC_HEADERS CONFIGURE_DEPENDS "include/*.hpp")
|
file(GLOB_RECURSE PUBLIC_HEADERS CONFIGURE_DEPENDS "include/*.hpp")
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(deps REQUIRED IMPORTED_TARGET pixman-1 cairo hyprutils libjpeg libwebp libjxl libjxl_cms libjxl_threads libmagic)
|
pkg_check_modules(
|
||||||
|
deps
|
||||||
|
REQUIRED
|
||||||
|
IMPORTED_TARGET
|
||||||
|
pixman-1
|
||||||
|
cairo
|
||||||
|
hyprutils
|
||||||
|
libjpeg
|
||||||
|
libwebp
|
||||||
|
libjxl
|
||||||
|
libjxl_cms
|
||||||
|
libjxl_threads
|
||||||
|
libmagic)
|
||||||
|
|
||||||
add_library(hyprgraphics SHARED ${SRCFILES})
|
add_library(hyprgraphics SHARED ${SRCFILES})
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
|
@ -56,6 +70,7 @@ add_dependencies(tests hyprgraphics_image)
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
install(TARGETS hyprgraphics)
|
install(TARGETS hyprgraphics)
|
||||||
install(DIRECTORY "include/hyprgraphics" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
install(DIRECTORY "include/hyprgraphics"
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
install(FILES ${CMAKE_BINARY_DIR}/hyprgraphics.pc
|
install(FILES ${CMAKE_BINARY_DIR}/hyprgraphics.pc
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
|
|
Loading…
Reference in a new issue