2016-02-16 23:21:12 +03:00
|
|
|
project(easy_profiler)
|
|
|
|
|
|
|
|
set(CPP_FILES
|
2016-09-06 22:23:55 +03:00
|
|
|
block.cpp
|
|
|
|
profile_manager.cpp
|
|
|
|
reader.cpp
|
2016-09-04 14:48:35 +03:00
|
|
|
event_trace_win.cpp
|
2016-09-08 23:34:04 +03:00
|
|
|
easy_socket.cpp
|
2016-02-16 23:21:12 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
set(H_FILES
|
2016-09-06 22:23:55 +03:00
|
|
|
${ROOT}/include/profiler/profiler.h
|
|
|
|
${ROOT}/include/profiler/reader.h
|
2016-09-04 14:48:35 +03:00
|
|
|
${ROOT}/include/profiler/event_trace_status.h
|
2016-09-08 21:03:05 +03:00
|
|
|
${ROOT}/include/profiler/easy_net.h
|
2016-09-06 22:23:55 +03:00
|
|
|
profile_manager.h
|
|
|
|
spin_lock.h
|
2016-09-04 14:48:35 +03:00
|
|
|
event_trace_win.h
|
2016-09-08 23:34:04 +03:00
|
|
|
easy_socket.h
|
2016-02-16 23:21:12 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
set(SOURCES
|
2016-09-06 22:23:55 +03:00
|
|
|
${CPP_FILES}
|
|
|
|
${H_FILES}
|
2016-02-16 23:21:12 +03:00
|
|
|
)
|
|
|
|
add_definitions(
|
2016-09-06 22:23:55 +03:00
|
|
|
-D_BUILD_PROFILER
|
2016-02-16 23:21:12 +03:00
|
|
|
)
|
2016-09-08 21:03:05 +03:00
|
|
|
|
2016-02-16 23:21:12 +03:00
|
|
|
add_library(${PROJECT_NAME} SHARED ${SOURCES})
|
|
|
|
|
2016-09-09 06:14:34 +03:00
|
|
|
if(UNIX)
|
2016-09-12 20:16:05 +03:00
|
|
|
set(PLATFORM_LIBS pthread)
|
2016-09-09 06:14:34 +03:00
|
|
|
endif(UNIX)
|
2016-09-08 21:03:05 +03:00
|
|
|
|
2016-09-09 06:14:34 +03:00
|
|
|
target_link_libraries(${PROJECT_NAME} ${PLATFORM_LIBS})
|