-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
84 lines (78 loc) · 1.64 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
cmake_minimum_required(VERSION 2.8)
project(CAB_SDN)
set(CMAKE_CXX_COMPILER /usr/bin/g++)
set(CMAKE_CXX_FLAGS "-std=c++11 -g")
find_package(Boost 1.54.0 REQUIRED COMPONENTS system thread filesystem iostreams log log_setup)
if(Boost_FOUND)
message(STATUS "Boost found")
message(STATUS "BOOST_LIBRARIES: " ${Boost_LIBRARIES})
endif()
add_definitions(-DBOOST_LOG_DYN_LINK)
set(CAB Bucket.cpp BucketTree.cpp MicRuleTree.cpp RuleList.cpp OFswitch.cpp BucketTree.cpp TraceAnalyze.cpp TraceGen.cpp)
add_library(cab ${CAB})
#add_executable(UnitTest UnitTest.cpp)
#add_executable(TracePrepare TracePrepare.cpp)
#add_executable(TracePrepare_blk TracePrepare_blk.cpp)
#add_executable(TraceExam TraceExam.cpp)
#add_executable(CAB_Simu CAB_Simu.cpp)
add_executable(TraceForEval TraceForEval.cpp)
add_executable(CPLX_test CPLX_test.cpp)
if(UNIX)
target_link_libraries(
TraceForEval
cab
${Boost_LIBRARIES}
pthread
z
pcap
)
target_link_libraries(
CPLX_test
cab
${Boost_LIBRARIES}
pthread
z
pcap
)
# target_link_libraries(
# UnitTest
# cab
# ${Boost_LIBRARIES}
# pthread
# z
# pcap
# )
# target_link_libraries(
# TracePrepare
# cab
# ${Boost_LIBRARIES}
# pthread
# z
# pcap
# )
# target_link_libraries(
# TracePrepare_blk
# cab
# ${Boost_LIBRARIES}
# pthread
# z
# pcap
# )
# target_link_libraries(
# TraceExam
# cab
# ${Boost_LIBRARIES}
# z
# )
# target_link_libraries(
# CAB_Simu
# cab
# ${Boost_LIBRARIES}
# z
# )
elseif(WIN32)
elseif(APPLE)
endif(UNIX)
message(STATUS "c++ flag : " ${CMAKE_CXX_FLAGS})
message(STATUS "this is source dir " ${project_source_dir})
message(STATUS "this is binary dir " ${project_binary_dir})