osrm-backend/src/benchmarks/CMakeLists.txt
Dane Springmeyer a22e0fa62e minor build fixes
- 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)
2016-10-27 13:39:33 -07:00

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)