diff options
Diffstat (limited to 'other/CMakeLists.txt')
-rw-r--r-- | other/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/other/CMakeLists.txt b/other/CMakeLists.txt index db742e3e..871a9e92 100644 --- a/other/CMakeLists.txt +++ b/other/CMakeLists.txt | |||
@@ -1,9 +1,24 @@ | |||
1 | cmake_minimum_required(VERSION 2.6.0) | 1 | cmake_minimum_required(VERSION 2.6.0) |
2 | 2 | ||
3 | cmake_policy(SET CMP0011 NEW) | 3 | cmake_policy(SET CMP0011 NEW) |
4 | SET(USER_NAME $ENV{USERNAME} CACHE STRING UserName) | ||
4 | 5 | ||
5 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) | 6 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) |
6 | 7 | ||
8 | if(WIN32) | ||
9 | file(MAKE_DIRECTORY "C:/Users/${USER_NAME}/AppData/Roaming/.config/tox") | ||
10 | file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.config/tox") | ||
11 | else() | ||
12 | set(HOME "$ENV{HOME}") | ||
13 | if(APPLE) | ||
14 | file(MAKE_DIRECTORY ${HOME}/Library/Application\ Support/.config/tox) | ||
15 | file(INSTALL DHTservers DESTINATION ${HOME}/Library/Application\ Support/.config/tox) | ||
16 | else() | ||
17 | file(MAKE_DIRECTORY ${HOME}/.config/tox) | ||
18 | file(INSTALL DHTservers DESTINATION ${HOME}/.config/tox) | ||
19 | endif() | ||
20 | endif() | ||
21 | |||
7 | if(LINUX) | 22 | if(LINUX) |
8 | add_subdirectory(bootstrap_serverdaemon) | 23 | add_subdirectory(bootstrap_serverdaemon) |
9 | endif() | 24 | endif() |