mirror of
https://github.com/polybar/polybar.git
synced 2024-10-27 05:23:39 -04:00
c24a6999a4
Each major target of polybar can now be enabled/disabled while configuring (even polybar itself). The cmake code specific to each target will only run if the target is enabled. This allows us to for example just build the documentation without having to run all the cmake code related to compilation or having the polybar dependencies installed (other than sphinx).
15 lines
418 B
CMake
15 lines
418 B
CMake
#
|
|
# Generate settings.hpp
|
|
#
|
|
|
|
list(APPEND XPP_EXTENSION_LIST xpp::randr::extension)
|
|
list(APPEND XPP_EXTENSION_LIST xpp::composite::extension)
|
|
if(WITH_XKB)
|
|
list(APPEND XPP_EXTENSION_LIST xpp::xkb::extension)
|
|
endif()
|
|
string(REPLACE ";" ", " XPP_EXTENSION_LIST "${XPP_EXTENSION_LIST}")
|
|
|
|
configure_file(
|
|
${CMAKE_CURRENT_LIST_DIR}/settings.hpp.cmake
|
|
${CMAKE_BINARY_DIR}/generated-sources/settings.hpp
|
|
ESCAPE_QUOTES)
|