mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 15:34:36 +00:00
Build everything with profiling flags.
This commit is contained in:
parent
0e6ba23800
commit
290e546f47
@ -17,6 +17,11 @@ project(
|
|||||||
VERSION ${TRACY_VERSION_STRING}
|
VERSION ${TRACY_VERSION_STRING}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(SELF_PROFILE)
|
||||||
|
add_definitions(-DTRACY_ENABLE)
|
||||||
|
add_compile_options(-g -O3 -fno-omit-frame-pointer)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/config.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/config.cmake)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/vendor.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/vendor.cmake)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/server.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/server.cmake)
|
||||||
@ -158,8 +163,6 @@ include_directories(${INCLUDES})
|
|||||||
link_libraries(${LIBS})
|
link_libraries(${LIBS})
|
||||||
|
|
||||||
if(SELF_PROFILE)
|
if(SELF_PROFILE)
|
||||||
add_definitions(-DTRACY_ENABLE)
|
|
||||||
add_compile_options(-g -O3 -fno-omit-frame-pointer)
|
|
||||||
set(PROFILER_FILES ${PROFILER_FILES}
|
set(PROFILER_FILES ${PROFILER_FILES}
|
||||||
../public/TracyClient.cpp
|
../public/TracyClient.cpp
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user