mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-28 01:04:41 +08:00
22 lines
357 B
CMake
22 lines
357 B
CMake
project(profiler_reader)
|
|
|
|
set(CPP_FILES
|
|
main.cpp
|
|
)
|
|
|
|
set(SOURCES
|
|
${CPP_FILES}
|
|
)
|
|
|
|
add_executable(${PROJECT_NAME} ${SOURCES})
|
|
|
|
if(MINGW OR UNIX)
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
|
|
endif(MINGW OR UNIX)
|
|
|
|
if(UNIX)
|
|
set(SPEC_LIB ${SPEC_LIB} pthread)
|
|
endif(UNIX)
|
|
|
|
target_link_libraries(${PROJECT_NAME} easy_profiler ${SPEC_LIB})
|