Modified cmakefile to move the serverlist to the proper directory.

Tested on GNU/Linux.
This commit is contained in:
loadletter 2013-08-18 23:20:34 +02:00
parent adac62560d
commit e8b8dfebb3

View File

@ -6,16 +6,16 @@ SET(USER_NAME $ENV{USERNAME} CACHE STRING UserName)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
if(WIN32) if(WIN32)
file(MAKE_DIRECTORY "C:/Users/${USER_NAME}/AppData/Roaming/.tox") file(MAKE_DIRECTORY "C:/Users/${USER_NAME}/AppData/Roaming/.config/tox")
file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.tox") file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.config/tox")
else() else()
set(HOME "$ENV{HOME}") set(HOME "$ENV{HOME}")
if(APPLE) if(APPLE)
file(MAKE_DIRECTORY ${HOME}/Library/Application\ Support/.tox) file(MAKE_DIRECTORY ${HOME}/Library/Application\ Support/.config/tox)
file(INSTALL DHTservers DESTINATION ${HOME}/Library/Application\ Support/.tox) file(INSTALL DHTservers DESTINATION ${HOME}/Library/Application\ Support/.config/tox)
else() else()
file(MAKE_DIRECTORY ${HOME}/.tox) file(MAKE_DIRECTORY ${HOME}/.config/tox)
file(INSTALL DHTservers DESTINATION ${HOME}/.tox) file(INSTALL DHTservers DESTINATION ${HOME}/.config/tox)
endif() endif()
endif() endif()