-
Notifications
You must be signed in to change notification settings - Fork 26
/
CMakeLists.txt
32 lines (23 loc) · 1011 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
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
SET(CMAKE_CXX_FLAGS "-fno-stack-protector -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -g -O3 -std=gnu++11 -march=native")
SET(CMAKE_C_FLAGS "-fno-stack-protector -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -g -O3 -std=gnu11 -march=native")
SET(PRJ qq)
include(${CMAKE_CURRENT_SOURCE_DIR}/tbb/cmake/TBBBuild.cmake)
tbb_build(TBB_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/tbb CONFIG_DIR TBB_DIR)
find_package(TBB)
SET(QQ_SRC src/qq_wrapper.cpp)
SET(LIBMOON_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libmoon)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}/src
${LIBMOON_DIR}/deps/dpdk/x86_64-native-linuxapp-gcc/include
${LIBMOON_DIR}/deps/luajit/src
${LIBMOON_DIR}/lib
${LIBMOON_DIR}/src
)
ADD_DEFINITIONS(-DNDEBUG)
ADD_LIBRARY(${PRJ} SHARED ${QQ_SRC})
SET(FLOWTRACKER_SRC
src/var_hashmap.cpp
)
ADD_LIBRARY(flowtracker SHARED ${FLOWTRACKER_SRC})
TARGET_LINK_LIBRARIES(flowtracker ${TBB_IMPORTED_TARGETS})