polybar-dwm/lib/CMakeLists.txt
Przemek Grondek dd03bb3c40 Merge tag '3.6.3'
Search for xcbgen with PYTHON_EXECUTABLE

This way users can specify `-D:PYTHON_EXECUTABLE` to force a certain
python executable and that executable will then also be used to search
for xcbgen.

This should also provide a more universal solution to the configuration
issues with pyenv or conda since the user can just specify
`-D:PYTHON_EXECUTABLE=/usr/bin/python3`.
2023-08-05 18:44:08 +02:00

47 lines
1006 B
CMake

#
# Configure libs
#
# Library: xpp {{{
set(XCB_PROTOS xproto)
list(APPEND XCB_PROTOS randr)
list(APPEND XCB_PROTOS composite)
if(WITH_XKB)
list(APPEND XCB_PROTOS xkb)
endif()
add_subdirectory(xpp)
if(NOT TARGET xpp)
message(FATAL_ERROR "Target xpp not generated")
else()
get_target_property(_xpp_includes xpp INCLUDE_DIRECTORIES)
set_target_properties(xpp PROPERTIES INCLUDE_DIRECTORIES "")
target_include_directories(xpp SYSTEM PUBLIC ${_xpp_includes})
endif()
# }}}
# Library: i3ipcpp {{{
if(ENABLE_I3)
add_subdirectory(i3ipcpp)
if(NOT TARGET i3ipc++)
message(FATAL_ERROR "Target i3ipcpp not generated")
else()
get_target_property(_i3ipcpp_includes i3ipc++ INCLUDE_DIRECTORIES)
set_target_properties(i3ipc++ PROPERTIES INCLUDE_DIRECTORIES "")
target_include_directories(i3ipc++ SYSTEM PUBLIC ${_i3ipcpp_includes})
endif()
endif()
# }}}
# Library: dwmipcpp {{{
if(ENABLE_DWM)
add_subdirectory(dwmipcpp)
list(APPEND libs ${DWMIPCPP_LIBRARIES})
endif()
# }}}