polybar-dwm/lib/CMakeLists.txt
Mihir Lad ad3666ed47 Update cmake/config files to include dwmipcpp
Include dwmipcpp as a library in cmake and config files, so it can be built
automatically. The configuration of dwmicpp was added to match that of i3 and
bspwm to maintain the same cmake workflow and style.
2020-12-19 19:28:34 -05:00

49 lines
806 B
CMake

#
# Configure libs
#
# Library: concurrentqueue {{{
add_library(concurrentqueue INTERFACE)
target_include_directories(concurrentqueue INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/concurrentqueue/include>)
list(APPEND libs concurrentqueue)
# }}}
# Library: xpp {{{
set(XCB_PROTOS xproto)
if(WITH_XRANDR)
list(APPEND XCB_PROTOS randr)
endif()
if(WITH_XCOMPOSITE)
list(APPEND XCB_PROTOS composite)
endif()
if(WITH_XKB)
list(APPEND XCB_PROTOS xkb)
endif()
add_subdirectory(xpp)
list(APPEND libs xpp)
# }}}
# Library: i3ipcpp {{{
if(ENABLE_I3)
add_subdirectory(i3ipcpp)
list(APPEND libs ${I3IPCPP_LIBRARIES})
endif()
# }}}
# Library: dwmipcpp {{{
if(ENABLE_DWM)
add_subdirectory(dwmipcpp)
list(APPEND libs ${DWMIPCPP_LIBRARIES})
endif()
# }}}
set(libs ${libs} PARENT_SCOPE)