-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f882a0
commit 0755ab2
Showing
7 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
project(libcalltrace) | ||
project(libtraceio) | ||
set(CMAKE_CXX_STANDARD 20) | ||
|
||
include(FetchContent) | ||
FetchContent_Declare(fmt GIT_REPOSITORY https://github.com/fmtlib/fmt.git) | ||
FetchContent_MakeAvailable(fmt) | ||
set_property(TARGET fmt PROPERTY POSITION_INDEPENDENT_CODE ON) | ||
|
||
add_library(calltrace SHARED calltrace.cpp calltrace.h resolver.cpp resolver.h) | ||
target_link_libraries(calltrace PRIVATE dl fmt::fmt) | ||
target_compile_options(calltrace PRIVATE -fno-instrument-functions -Wall -Wextra -Wsign-compare) | ||
add_library(traceio SHARED traceio.cpp traceio.h resolver.cpp resolver.h) | ||
target_link_libraries(traceio PRIVATE dl fmt::fmt) | ||
target_compile_options(traceio PRIVATE -fno-instrument-functions -Wall -Wextra -Wsign-compare) | ||
|
||
option(BUILD_SAMPLES "Build samples" OFF) | ||
if (BUILD_SAMPLES) | ||
add_subdirectory(sample) | ||
foreach (target trace_basic trace_test trace_leveldb db_bench) | ||
target_link_libraries(${target} calltrace) | ||
target_link_libraries(${target} traceio) | ||
endforeach () | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.