# mwm: CMakeLists.txt

cmake_minimum_required(VERSION 2.6)

project(mwm)

find_package(PkgConfig REQUIRED)

pkg_check_modules(XCB REQUIRED xcb)
pkg_check_modules(XCB-ATOM REQUIRED xcb-atom)
pkg_check_modules(XCB-ICCCM REQUIRED xcb-icccm)

add_executable(mwm
    mwm.c
    window.c
    layout.c
    hook.c
    tag.c
    bar.c
)

target_link_libraries(mwm ${XCB-ATOM_LIBRARIES} ${XCB-ICCCM_LIBRARIES} ${XCB_LIBRARIES})

install(TARGETS mwm DESTINATION bin)


# mwm: CMakeLists.txt

cmake_minimum_required(VERSION 2.6)

project(mwm)

find_package(PkgConfig REQUIRED)

pkg_check_modules(XCB REQUIRED xcb xcb-atom xcb-icccm xcb-keysyms)

add_executable(mwm
    mwm.c
    window.c
    layout.c
    hook.c
    tag.c
    bar.c
)

target_link_libraries(mwm ${XCB_LIBRARIES})

install(TARGETS mwm DESTINATION bin)


Use simpler xcb module checking
Use simpler xcb module checking
