polybar-dwm/cmake/templates/userconfig.cmake.in

8 lines
255 B
CMake
Raw Normal View History

set(USER_CONFIG_HOME $ENV{XDG_CONFIG_HOME})
if(NOT USER_CONFIG_HOME)
set(USER_CONFIG_HOME $ENV{HOME}/.config)
endif()
set(USER_CONFIG_HOME ${USER_CONFIG_HOME}/lemonbuddy)
file(INSTALL @CMAKE_SOURCE_DIR@/examples/config DESTINATION ${USER_CONFIG_HOME})