2013-07-22 08:43:05 +08:00
|
|
|
cmake_minimum_required(VERSION 2.6.0)
|
|
|
|
|
|
|
|
cmake_policy(SET CMP0011 NEW)
|
|
|
|
|
2013-07-18 06:06:05 +08:00
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
|
2013-07-23 03:28:09 +08:00
|
|
|
|
2013-08-18 18:03:46 +08:00
|
|
|
if(WIN32)
|
2013-08-18 18:12:55 +08:00
|
|
|
file(MAKE_DIRECTORY %appdata%/.tox)
|
|
|
|
file(INSTALL DHTservers DESTINATION %appdata%/.tox)
|
2013-08-18 18:03:46 +08:00
|
|
|
else()
|
|
|
|
set(HOME "$ENV{HOME}")
|
|
|
|
file(MAKE_DIRECTORY ${HOME}/.tox)
|
|
|
|
file(INSTALL DHTservers DESTINATION ${HOME}/.tox)
|
|
|
|
endif()
|
|
|
|
|
2013-08-11 00:41:32 +08:00
|
|
|
if(LINUX)
|
2013-07-23 03:28:09 +08:00
|
|
|
add_subdirectory(bootstrap_serverdaemon)
|
|
|
|
endif()
|