Init
This commit is contained in:
11
CMakeLists.txt
Normal file
11
CMakeLists.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(TestTracy)
|
||||
|
||||
# 可用的选项:TRACY_ENABLE,TRACY_ON_DEMAND,TRACY_NO_BROADCAST,TRACY_NO_CODE_TRANSFER , ...
|
||||
# 在add_subdirectory之前设置选项
|
||||
option (TRACY_ENABLE "" ON)
|
||||
option (TRACY_ON_DEMAND "" ON)
|
||||
add_subdirectory ("thirdparty/tracy")
|
||||
#链接 `Tracy::TracyClient` 到你想要用Tracy进行性能分析的目标。
|
||||
add_executable(MyProject main.cpp)
|
||||
target_link_libraries (MyProject PUBLIC Tracy::TracyClient)
|
||||
Reference in New Issue
Block a user