summaryrefslogtreecommitdiff
path: root/other/CMakeLists.txt
blob: 10e5b05153fcea8b564e0b13da528440fe1df065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 2.6.0)

cmake_policy(SET CMP0011 NEW)
SET(USER_NAME $ENV{USERNAME} CACHE STRING UserName)

include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)

if(WIN32)
  file(MAKE_DIRECTORY "C:/Users/${USER_NAME}/AppData/Roaming/.tox")
  file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.tox")
else()
  set(HOME "$ENV{HOME}")
  if(APPLE)
    file(MAKE_DIRECTORY ${HOME}Library/Application Support/.tox)
    file(INSTALL DHTservers DESTINATION ${HOME}Library/Application Support/.tox)
  else()
    file(MAKE_DIRECTORY ${HOME}/.tox)
    file(INSTALL DHTservers DESTINATION ${HOME}/.tox)
  endif()
endif()

if(LINUX)
	add_subdirectory(bootstrap_serverdaemon)
endif()