2013-07-22 08:43:05 +08:00
|
|
|
cmake_minimum_required(VERSION 2.6.0)
|
|
|
|
|
|
|
|
cmake_policy(SET CMP0011 NEW)
|
2013-07-23 03:28:09 +08:00
|
|
|
|
2013-08-18 18:03:46 +08:00
|
|
|
if(WIN32)
|
2013-08-21 10:39:31 +08:00
|
|
|
file(MAKE_DIRECTORY "$ENV{APPDATA}/.config/tox")
|
|
|
|
file(INSTALL DHTservers DESTINATION "$ENV{APPDATA}/.config/tox")
|
2013-08-18 18:03:46 +08:00
|
|
|
else()
|
|
|
|
set(HOME "$ENV{HOME}")
|
2013-08-18 18:41:30 +08:00
|
|
|
if(APPLE)
|
2013-08-19 05:20:34 +08:00
|
|
|
file(MAKE_DIRECTORY ${HOME}/Library/Application\ Support/.config/tox)
|
|
|
|
file(INSTALL DHTservers DESTINATION ${HOME}/Library/Application\ Support/.config/tox)
|
2013-08-18 18:41:30 +08:00
|
|
|
else()
|
2013-08-19 05:20:34 +08:00
|
|
|
file(MAKE_DIRECTORY ${HOME}/.config/tox)
|
|
|
|
file(INSTALL DHTservers DESTINATION ${HOME}/.config/tox)
|
2013-08-18 18:41:30 +08:00
|
|
|
endif()
|
2013-08-18 18:03:46 +08:00
|
|
|
endif()
|
|
|
|
|
2013-08-21 10:39:31 +08:00
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
|
|
|
|
|
2013-08-11 00:41:32 +08:00
|
|
|
if(LINUX)
|
2013-07-23 03:28:09 +08:00
|
|
|
add_subdirectory(bootstrap_serverdaemon)
|
|
|
|
endif()
|