17 lines
400 B
CMake
17 lines
400 B
CMake
cmake_minimum_required(VERSION 3.8)
|
|
|
|
project(demo_project VERSION 0.0.1 LANGUAGES CXX)
|
|
|
|
add_executable(main main.cpp)
|
|
|
|
set(CPPTRACE_TAG "" CACHE STRING "cpptrace git tag")
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(
|
|
cpptrace
|
|
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
|
|
GIT_TAG ${CPPTRACE_TAG}
|
|
)
|
|
FetchContent_MakeAvailable(cpptrace)
|
|
target_link_libraries(main cpptrace)
|