-
Notifications
You must be signed in to change notification settings - Fork 79
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
Showing
6 changed files
with
72 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.13) | ||
project(common) | ||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
include(FetchContent) | ||
FetchContent_Declare( | ||
pinpoint | ||
GIT_REPOSITORY https://github.com/pinpoint-c-agent/pinpoint-c-agent.git | ||
# GIT_TAG 74bc39d813d664cb56b78b1506d91932c8131396 | ||
# not recommended, please use hash key like `74bc39d813d664cb56b78b1506d91932c8131396` | ||
GIT_TAG origin/dev | ||
) | ||
|
||
FetchContent_GetProperties(pinpoint) | ||
if (NOT pinpoint_POPULATED) | ||
FetchContent_Populate(pinpoint) | ||
add_subdirectory(${pinpoint_SOURCE_DIR}/common ${pinpoint_BINARY_DIR}) | ||
endif () | ||
|
||
FetchContent_MakeAvailable(pinpoint) | ||
|
||
add_executable(test_pinpoint_cpp test_pinpoint.cpp) | ||
add_executable(test_pinpoint_c test_pinpoint.c) | ||
target_link_libraries(test_pinpoint_cpp PRIVATE pinpoint_common_static rt) | ||
target_link_libraries(test_pinpoint_c pinpoint_common_static rt) |