-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
40 lines (31 loc) · 984 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
37
38
39
40
cmake_minimum_required(VERSION 2.8.8)
include(${CMAKE_SOURCE_DIR}/cmake/include/define_module.cmake)
#######################
# project information #
#######################
project(sopnet)
set(VERSION_MAJOR 0)
set(VERSION_MINOR 1)
#####################
# compiler settings #
#####################
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -DWITH_BOOST_GRAPH -Wall -Wextra -fomit-frame-pointer -std=c++0x")
set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -DWITH_BOOST_GRAPH -Wall -Wextra -std=c++0x")
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Release or Debug" FORCE)
endif()
#######################
# project directories #
#######################
include_directories(${PROJECT_BINARY_DIR})
include_directories(${PROJECT_SOURCE_DIR})
add_subdirectory(modules)
add_subdirectory(sopnet)
add_subdirectory(binaries)
###############
# config file #
###############
configure_file(
${PROJECT_SOURCE_DIR}/cmake/config.h.in
${PROJECT_BINARY_DIR}/config.h
)