mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
e8b8dfebb3
Tested on GNU/Linux.
25 lines
764 B
CMake
25 lines
764 B
CMake
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/.config/tox")
|
|
file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.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()
|
|
|
|
if(LINUX)
|
|
add_subdirectory(bootstrap_serverdaemon)
|
|
endif()
|