xcb-studies/CMakeLists.txt

16 lines
418 B
CMake

project("XrandR")
cmake_minimum_required(VERSION 3.18)
find_package(ECM REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
find_package(XCB REQUIRED)
link_libraries(${XCB_LIBRARIES})
include_directories(${X11_INCLUDE_DIR})
list(APPEND CMAKE_CXX_FLAGS "${CXXMAKE_C_FLAGS} -std=c++17 -I../src/include/ -g")
add_executable(xrandr src/xrandr.cpp)
target_link_libraries(xrandr ${X11_XCB_LIBRARIES})