2016-02-16 23:21:12 +03:00
|
|
|
project(profiler_sample)
|
|
|
|
|
|
|
|
set(CPP_FILES
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
${CPP_FILES}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME} ${SOURCES})
|
|
|
|
|
2016-06-22 23:59:49 +03:00
|
|
|
set(DISABLED_PROFILER_NAME
|
|
|
|
"${PROJECT_NAME}_disabled_profiler"
|
|
|
|
)
|
|
|
|
add_executable(${DISABLED_PROFILER_NAME} ${SOURCES})
|
|
|
|
|
2016-02-18 23:50:10 +03:00
|
|
|
if(UNIX)
|
|
|
|
set(SPEC_LIB pthread)
|
|
|
|
endif(UNIX)
|
|
|
|
|
2016-06-22 23:59:49 +03:00
|
|
|
target_link_libraries(${PROJECT_NAME} easy_profiler ${SPEC_LIB})
|
|
|
|
target_link_libraries(${DISABLED_PROFILER_NAME} easy_profiler ${SPEC_LIB})
|
|
|
|
|
|
|
|
target_compile_definitions(${DISABLED_PROFILER_NAME} PRIVATE FULL_DISABLE_PROFILER)
|