1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
set(UTILS_SOURCES
activity_manager.cc
bash_command.cc
file_reader.cc
installer.cc
package_manager.cc
profiler_file.cc
stopwatch.cc
token.cc)
if (CMAKE_HOST_APPLE AND NOT ANDROID)
set(UTILS_SOURCES ${UTILS_SOURCES} clock.mac.cc)
else()
set(UTILS_SOURCES ${UTILS_SOURCES} clock.cc)
endif()
if (ANDROID)
set(UTILS_SOURCES ${UTILS_SOURCES} log.android.cc)
else()
set(UTILS_SOURCES ${UTILS_SOURCES} log.cc)
endif()
add_library(ProfilerUtils
${UTILS_SOURCES})
add_unit_test(profiler-utils-test
file_reader_test.cc
time_value_buffer_test.cc
timespec_math_test.cc
stopwatch_test.cc)
target_link_libraries(profiler-utils-test
ProfilerUtils
${GTEST_LINK_LIBRARIES})
|