awesome/CMakeLists.txt
2024-07-06 20:31:50 +02:00

16 lines
414 B
CMake

cmake_minimum_required(VERSION 3.20)
project(awesome)
find_package(PkgConfig)
set(POSITION_INDEPENDENT_CODE YES)
set(C_STANDARD 11)
add_compile_options(-Wall -Wextra -pedantic)
pkg_check_modules(CONSTRAIN REQUIRED x11 xi xfixes xrandr)
add_library(constrain SHARED lib/constrain.c)
target_link_libraries(constrain ${CONSTRAIN_LIBRARIES})
target_include_directories(constrain PUBLIC ${CONSTRAIN_INCLUDE_DIRS})