feat add microprofile
Some checks failed
cpp-template / build (Debug, aarch64-linux-gnu) (push) Failing after 18s
cpp-template / build (Debug, arm-linux-gnueabihf) (push) Failing after 17s
cpp-template / build (Debug, mipsel-linux-gnu) (push) Failing after 18s
cpp-template / build (Release, aarch64-linux-gnu) (push) Failing after 13s
cpp-template / build (Release, host.gcc) (push) Has been cancelled
cpp-template / build (Release, mipsel-linux-gnu) (push) Has been cancelled
cpp-template / build (Debug, host.gcc) (push) Has been cancelled
cpp-template / build (Release, arm-linux-gnueabihf) (push) Has been cancelled

This commit is contained in:
tqcq
2025-08-26 00:55:10 +08:00
parent cf49554574
commit ed976db651
3 changed files with 256 additions and 100 deletions

View File

@@ -11,10 +11,10 @@ if(CMAKE_CXX_COMPILER_ID
endif()
# option(
# WITH_MICROPROFILE
# "with MicroProfile"
# ON)
option(
WITH_MICROPROFILE
"with MicroProfile"
ON)
option(
WITH_EXAMPLES
"with examples"
@@ -55,7 +55,9 @@ CPMAddPackage(
NAME tracy
URI https://github.com/wolfpld/tracy
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/tracy
OPTIONS "TRACY_ENABLE ON" "TRACY_ON_DEMAND ON"
OPTIONS "TRACY_ENABLE ON"
"TRACY_ON_DEMAND ON"
"TRACY_TIMER_FALLBACK ON"
FORCE)
CPMAddPackage(
@@ -74,7 +76,9 @@ CPMAddPackage(
FORCE)
if(WITH_EXAMPLES)
# cc_executable(microprofile_demo SRCS examples/microprofile_demo.cc)
if(WITH_MICROPROFILE)
cc_executable(microprofile_demo SRCS examples/microprofile_demo.cc)
endif()
cc_executable(tracy_demo SRCS examples/tracy_demo.cc)
endif()