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) 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}) pkg_check_modules(PWCALL REQUIRED luajit gobject-2.0) add_library(pwcall SHARED lib/pwcall.cxx) target_link_libraries(pwcall ${PWCALL_LIBRARIES}) target_include_directories(pwcall PUBLIC ${PWCALL_INCLUDE_DIRS})