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

9 lines
259 B
CMake
Raw Normal View History

2017-01-25 22:28:25 +00:00
set(USER_CONFIG_HOME "$ENV{XDG_CONFIG_HOME}")
if(NOT USER_CONFIG_HOME)
2017-01-25 22:28:25 +00:00
set(USER_CONFIG_HOME "$ENV{HOME}/.config")
endif()
2017-01-25 22:28:25 +00:00
set(USER_CONFIG_HOME "${USER_CONFIG_HOME}/polybar")
2017-01-25 22:28:25 +00:00
file(INSTALL "@CMAKE_SOURCE_DIR@/doc/config"
DESTINATION "${USER_CONFIG_HOME}")