2017-01-26 11:17:02 -05:00
|
|
|
#
|
|
|
|
# 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(
|
2017-01-26 14:33:13 -05:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/settings.hpp.cmake
|
2019-04-04 16:53:54 -04:00
|
|
|
${CMAKE_BINARY_DIR}/generated-sources/settings.hpp
|
2019-04-08 18:30:49 -04:00
|
|
|
ESCAPE_QUOTES)
|
2017-01-26 11:17:02 -05:00
|
|
|
|
2019-04-04 16:53:54 -04:00
|
|
|
list(APPEND dirs ${CMAKE_BINARY_DIR}/generated-sources/)
|
2018-11-05 10:10:30 -05:00
|
|
|
set(APP_VERSION ${APP_VERSION} PARENT_SCOPE)
|
2017-01-26 11:17:02 -05:00
|
|
|
set(dirs ${dirs} PARENT_SCOPE)
|