0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-30 02:16:55 +08:00
easy_profiler/src/CMakeLists.txt

34 lines
583 B
CMake
Raw Normal View History

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
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
${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
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-08 21:03:05 +03:00
target_link_libraries(${PROJECT_NAME} pthread)