-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (22 loc) · 873 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
cmake_minimum_required(VERSION 3.6)
project(ZaroFlow)
set(CMAKE_CXX_STANDARD 11)
# locate Boost library
find_package(Boost 1.57.0 COMPONENTS system filesystem REQUIRED)
if(Boost_FOUND)
message(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
message(STATUS "Boost_LIBRARIES: ${Boost_LIBRARIES}")
message(STATUS "Boost_VERSION: ${Boost_VERSION}")
include_directories(${Boost_INCLUDE_DIRS})
endif()
add_executable(BoostTest main.cpp)
if(Boost_FOUND)
target_link_libraries(BoostTest ${Boost_LIBRARIES})
endif()
set(SOURCE_FILES main.cpp)
add_executable(ZaroFlow ${SOURCE_FILES})
# locate include and link LEDA libraries
set(LEDAROOOT /Users/nomaterials/Documents/Code_Libraries/LEDA-6.4-free-mavericks-llvm-5.1-mt)
include_directories(SYSTEM ${LEDAROOOT}/incl)
link_directories(${LEDAROOOT})
target_link_libraries(ZaroFlow ${LEDAROOOT}/libleda.a)