-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
30 lines (23 loc) · 934 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
cmake_minimum_required(VERSION 2.8)
set(CMAKE_VERBOSE_MAKEFILE ON)
project(yet C CXX)
#SET(CMAKE_CXX_COMPILER "")
set(CMAKE_CXX_FLAGS "-g -pthread -std=c++0x -pipe -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wunused-parameter -Woverloaded-virtual -Wpointer-arith -Wshadow -Wwrite-strings -Wcast-align")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DASIO_STANDALONE")
set(CMAKE_CXX_FLAGS_DEBUG "-O0")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
if(APPLE)
message(STATUS "os: APPLE")
#set(COMMON_LIBS pthread)
elseif(UNIX)
message(STATUS "os: UNIX")
set(COMMON_LIBS pthread rt)
set(CMAKE_EXE_LINKER_FLAGS "-static-libstdc++")
endif()
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
include_directories(yet)
include_directories(third_party/asio-asio-1-12-2/asio/include)
include_directories(third_party/spdlog-1.2.1/include)
include_directories(third_party/json-3-5-0/include)
add_subdirectory(yet)