- Travis: Upgrade clang from 3.8.0 to 3.8.1 (provides smaller package for faster downloading) - Travis: Makes BUILD_COMPONENTS an option - Followup after #3130 (Boost_LIBRARIES variable no longer exists)
33 lines
654 B
CMake
33 lines
654 B
CMake
file(GLOB RTreeBenchmarkSources static_rtree.cpp)
|
|
file(GLOB MatchBenchmarkSources match.cpp)
|
|
|
|
add_executable(rtree-bench
|
|
EXCLUDE_FROM_ALL
|
|
${RTreeBenchmarkSources}
|
|
$<TARGET_OBJECTS:UTIL>)
|
|
|
|
target_include_directories(rtree-bench
|
|
PUBLIC
|
|
${PROJECT_SOURCE_DIR}/unit_tests)
|
|
|
|
target_link_libraries(rtree-bench
|
|
${BOOST_BASE_LIBRARIES}
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
${TBB_LIBRARIES})
|
|
|
|
add_executable(match-bench
|
|
EXCLUDE_FROM_ALL
|
|
${MatchBenchmarkSources}
|
|
$<TARGET_OBJECTS:UTIL>)
|
|
|
|
target_link_libraries(match-bench
|
|
osrm
|
|
${BOOST_BASE_LIBRARIES}
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
${TBB_LIBRARIES})
|
|
|
|
add_custom_target(benchmarks
|
|
DEPENDS
|
|
rtree-bench
|
|
match-bench)
|