Modularize benchmarks subproject

This commit is contained in:
Daniel J. Hofmann
2016-04-06 14:29:46 +02:00
committed by Patrick Niklaus
parent b1ed268d0e
commit a516245c94
2 changed files with 21 additions and 7 deletions
+20
View File
@@ -0,0 +1,20 @@
file(GLOB RTreeBenchmarkSources
*.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_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${TBB_LIBRARIES})
add_custom_target(benchmarks
DEPENDS
rtree-bench)