project(easy_profiler) set(CPP_FILES block.cpp profile_manager.cpp reader.cpp event_trace_win.cpp ) set(H_FILES ${ROOT}/include/profiler/profiler.h ${ROOT}/include/profiler/reader.h ${ROOT}/include/profiler/event_trace_status.h profile_manager.h spin_lock.h event_trace_win.h ) set(SOURCES ${CPP_FILES} ${H_FILES} ) add_definitions( -D_BUILD_PROFILER ) add_library(${PROJECT_NAME} SHARED ${SOURCES})