mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-25 23:40:51 +08:00
17 lines
429 B
CMake
17 lines
429 B
CMake
set(CPP_FILES
|
|
main.cpp
|
|
)
|
|
|
|
set(SOURCES
|
|
${CPP_FILES}
|
|
)
|
|
|
|
link_directories(${CMAKE_SOURCE_DIR}/../bin)
|
|
|
|
add_executable(profiler_sample ${SOURCES})
|
|
target_link_libraries(profiler_sample easy_profiler)
|
|
|
|
add_executable(profiler_sample_disabled_profiler ${SOURCES})
|
|
target_link_libraries(profiler_sample_disabled_profiler easy_profiler)
|
|
target_compile_definitions(profiler_sample_disabled_profiler PRIVATE DISABLE_EASY_PROFILER)
|