-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·47 lines (37 loc) · 1.2 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
project(symbol-lookup CXX)
cmake_minimum_required(VERSION 2.6.2)
set(CMAKE_SUPPRESS_REGENERATION TRUE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -std=c++0x -O3 -fno-optimize-sibling-calls -pthread")
# Default include path.
include_directories(src)
if ($ENV{BACKTRACE_EMPTY})
add_definitions(-DBACKTRACE_EMPTY)
endif()
####################
# Libraries
####################
add_library(utils
src/utils/scoped_tp.cpp
src/utils/scoped_tp.h
src/utils/time.h
src/utils/tp.cpp
src/utils/tp.h
src/utils/use_cpu.cpp
src/utils/use_cpu.h
src/utils/utils.cpp
src/utils/utils.h
)
#########################
# Executables
#########################
add_executable(tk-getpid src/benchmark/getpid.cpp)
target_link_libraries(tk-getpid utils pthread)
add_executable(tk-ust src/benchmark/ust.cpp src/benchmark/ust-tp.cpp)
target_link_libraries(tk-ust utils pthread dl lttng-ust)
add_executable(tk-mongo src/benchmark/mongo.cpp)
target_link_libraries(tk-mongo
mongoclient boost_thread boost_system boost_regex boost_random
utils dl lttng-ust)
add_executable(tk-libunwind src/benchmark/libunwind.cpp)
target_link_libraries(tk-libunwind
unwind unwind-x86_64 utils)