2024-03-07 04:19:38 +01:00
|
|
|
cmake_minimum_required(VERSION 3.19)
|
|
|
|
|
|
|
|
project(
|
|
|
|
hyprcursor-util
|
|
|
|
DESCRIPTION "A utility for creating and converting hyprcursor themes"
|
|
|
|
)
|
|
|
|
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_check_modules(deps REQUIRED IMPORTED_TARGET hyprlang>=0.4.0 libzip)
|
2024-03-11 23:01:46 +01:00
|
|
|
add_compile_definitions(HYPRCURSOR_VERSION="${HYPRCURSOR_VERSION}")
|
2024-03-07 04:19:38 +01:00
|
|
|
|
|
|
|
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
2024-04-04 17:19:15 +02:00
|
|
|
file(GLOB_RECURSE HCFILES CONFIGURE_DEPENDS "libhyprcursor/*.cpp")
|
2024-03-07 04:19:38 +01:00
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
|
|
|
2024-04-04 17:19:15 +02:00
|
|
|
add_executable(hyprcursor-util ${SRCFILES} ${HCFILES})
|
2024-03-07 04:19:38 +01:00
|
|
|
|
|
|
|
target_link_libraries(hyprcursor-util PkgConfig::deps)
|
|
|
|
target_include_directories(hyprcursor-util
|
|
|
|
PRIVATE
|
|
|
|
.
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS hyprcursor-util)
|