-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (30 loc) · 899 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 2.8.9)
project(toxsh)
set(CMAKE_VERBOSE_MAKEFILE on)
set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_C_FLAGS "-g -O2")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11") #-std=c++11 -stdlib=libc++ -lc++abi
# add_definitions(-g -O2)
set(CMAKE_INCLUDE_CURRENT_DIR on)
set(CMAKE_AUTOMOC on)
find_package(Qt5Core)
find_package(Qt5Network)
find_package(Qt5Gui)
find_package(Qt5Widgets)
# TODO use pkg_check_module
include_directories("/serv/stow/ptox/include" "/serv/stow/ptox/include/tox"
"./common")
link_directories("/serv/stow/ptox/lib")
link_libraries(-ltoxcore)
add_subdirectory(toxsocks)
add_subdirectory(toxmon)
add_subdirectory(toxshd)
add_subdirectory(webshd)
add_subdirectory(webshc)
add_subdirectory(trohd)
add_subdirectory(trohc)
add_subdirectory(p2psh)
add_subdirectory(dtnat)
#add_subdirectory(nathlp)
add_subdirectory(kdns)