awesome/CMakeLists.txt

16 lines
414 B
CMake
Raw Normal View History

2024-07-06 18:31:50 +00:00
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})