-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (26 loc) · 1.06 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
cmake_minimum_required(VERSION 3.2)
project(circinc)
set(CMAKE_CXX_STANDARD 11)
set(SOURCE_FILES
src/SourceManager.cpp
src/SourceManager.h
src/details/wave_context_policies/TraceIncludes.h
src/DependencyGraph.cpp
src/DependencyGraph.h
src/details/graph_types.h
src/details/graph_visitors/HawickVisitor.h
src/details/graph_visitors/HawickVisitor.cpp
src/details/algorithms/greedy.cpp
src/details/algorithms/greedy.h)
# Search for the cppan tool
find_program(CPPAN_PROGRAM_COMMAND cppan)
include_directories(src)
add_executable(circinc main.cpp ${SOURCE_FILES})
if(DEFINED CPPAN_PROGRAM_COMMAND)
add_subdirectory(.cppan)
target_link_libraries(circinc __cppan)
else()
# If you don't have cppan, remove this error and link the libraries listed in cppan.yml.
message(FATAL_ERROR "CPPAN was not found on your machine. You should provide and link the libraries listed in cppan.yml by yourself."
"Edit the CMakeLists.txt file to delete this warning and link the libraries.")
endif()