mirror of
https://github.com/polybar/polybar.git
synced 2024-12-09 14:10:19 -05:00
a3e2e51ac9
Unused Ref: #1730
25 lines
653 B
CMake
25 lines
653 B
CMake
#
|
|
# Generate settings.hpp
|
|
#
|
|
|
|
list(APPEND dirs ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
if(WITH_XRANDR)
|
|
list(APPEND XPP_EXTENSION_LIST xpp::randr::extension)
|
|
endif()
|
|
if(WITH_XCOMPOSITE)
|
|
list(APPEND XPP_EXTENSION_LIST xpp::composite::extension)
|
|
endif()
|
|
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)
|
|
|
|
list(APPEND dirs ${CMAKE_BINARY_DIR}/generated-sources/)
|
|
set(APP_VERSION ${APP_VERSION} PARENT_SCOPE)
|
|
set(dirs ${dirs} PARENT_SCOPE)
|