-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
65 lines (43 loc) · 1.5 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
cmake_minimum_required (VERSION 2.6)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++11 -Wall -Ofast -ggdb")
project (HAMMER)
#file(src/*)
set (PROJECT_SOURCE_DIR ./src)
set (PROJECT_BINARY_DIR ./bin)
set (EXECUTABLE_OUTPUT_PATH ./bin)
set (LIBRARY_OUTPUT_PATH ./lib)
file(GLOB headers src/hammer/*.hpp)
file(GLOB headers_sub src/hammer/*/*.hpp)
# The version number.
set (Hammer_VERSION_MAJOR 0)
set (Hammer_VERSION_MINOR 1)
# configure a header file to pass some of the CMake settings
# to the source code
configure_file (
"${PROJECT_SOURCE_DIR}/hammer/hammerConfig.h.in"
"${PROJECT_BINARY_DIR}/hammer/hammerConfig.h"
)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/${PROJECT_SOURCE_DIR}/cmake")
find_package(Eigen3)
find_package(TBB 4.2 REQUIRED)
find_package(NLopt)
if(NLOPT_FOUND)
add_definitions(-DUSE_NLOPT)
endif()
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.45.0 REQUIRED COMPONENTS system filesystem )
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif()
# add the binary tree to the search path for include files
# so that we will find TutoriConfig.h
include_directories("${PROJECT_BINARY_DIR}")
include_directories("${PROJECT_SOURCE_DIR}/")
include_directories("${PROJECT_SOURCE_DIR}/../submodules/limbo/src/")
include_directories(${EIGEN3_INCLUDE_DIR})
include_directories(${TBB_INCLUDE_DIR})
# add libs
link_directories("/usr/local/lib/ ${TBB_LIBRARY}")
add_subdirectory(./exp/)