toxcore/other/CMakeLists.txt
2013-08-20 22:54:14 -04:00

24 lines
664 B
CMake

cmake_minimum_required(VERSION 2.6.0)
cmake_policy(SET CMP0011 NEW)
if(WIN32)
file(MAKE_DIRECTORY "$ENV{APPDATA}/.config/tox")
file(INSTALL DHTservers DESTINATION "$ENV{APPDATA}/.config/tox")
else()
set(HOME "$ENV{HOME}")
if(APPLE)
file(MAKE_DIRECTORY ${HOME}/Library/Application\ Support/.config/tox)
file(INSTALL DHTservers DESTINATION ${HOME}/Library/Application\ Support/.config/tox)
else()
file(MAKE_DIRECTORY ${HOME}/.config/tox)
file(INSTALL DHTservers DESTINATION ${HOME}/.config/tox)
endif()
endif()
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
if(LINUX)
add_subdirectory(bootstrap_serverdaemon)
endif()