0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-29 10:05:48 +08:00
easy_profiler/src/CMakeLists.txt

44 lines
716 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
2016-09-08 21:03:05 +03:00
${ROOT}/include/profiler/easy_net.h
2016-09-15 22:41:47 +03:00
${ROOT}/include/profiler/easy_socket.h
2016-09-06 22:23:55 +03:00
profile_manager.h
spin_lock.h
event_trace_win.h
current_time.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-09-20 00:54:56 +03:00
if(WIN32)
add_definitions(
-D_WINSOCK_DEPRECATED_NO_WARNINGS
)
endif(WIN32)
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})