0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-28 17:28:14 +08:00
easy_profiler/src/CMakeLists.txt
2016-09-26 23:23:38 +03:00

44 lines
716 B
CMake

project(easy_profiler)
set(CPP_FILES
block.cpp
profile_manager.cpp
reader.cpp
event_trace_win.cpp
easy_socket.cpp
)
set(H_FILES
${ROOT}/include/profiler/profiler.h
${ROOT}/include/profiler/reader.h
${ROOT}/include/profiler/easy_net.h
${ROOT}/include/profiler/easy_socket.h
profile_manager.h
spin_lock.h
event_trace_win.h
current_time.h
)
set(SOURCES
${CPP_FILES}
${H_FILES}
)
add_definitions(
-D_BUILD_PROFILER
)
if(WIN32)
add_definitions(
-D_WINSOCK_DEPRECATED_NO_WARNINGS
)
endif(WIN32)
add_library(${PROJECT_NAME} SHARED ${SOURCES})
if(UNIX)
set(PLATFORM_LIBS pthread)
endif(UNIX)
target_link_libraries(${PROJECT_NAME} ${PLATFORM_LIBS})