diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 18c12d9..b42f665 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -32,3 +32,5 @@ endif() if(GMIO_BUILD_BENCHMARK_OPENCASCADE) add_subdirectory(benchmark_opencascade) endif() + +add_subdirectory(benchmark_other) diff --git a/benchmarks/benchmark_other/CMakeLists.txt b/benchmarks/benchmark_other/CMakeLists.txt new file mode 100644 index 0000000..8b84d28 --- /dev/null +++ b/benchmarks/benchmark_other/CMakeLists.txt @@ -0,0 +1,32 @@ +############################################################################# +## gmio +## Copyright Fougue (2 Mar. 2015) +## contact@fougue.pro +## +## This software is a reusable library whose purpose is to provide complete +## I/O support for various CAD file formats (eg. STL) +## +## This software is governed by the CeCILL-B license under French law and +## abiding by the rules of distribution of free software. You can use, +## modify and/ or redistribute the software under the terms of the CeCILL-B +## license as circulated by CEA, CNRS and INRIA at the following URL +## "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html". +############################################################################# + +# Returns the list of subdirectories inside fromDir +function(get_subdirs outList fromDir) + file(GLOB children RELATIVE ${fromDir} ${fromDir}/*) + set(dirList "") + foreach(child ${children}) + if(IS_DIRECTORY ${fromDir}/${child}) + list(APPEND dirList ${child}) + endif() + endforeach() + set(${outList} ${dirList} PARENT_SCOPE) +endfunction() + +# Lists all subdirs(targets) inside benchmark_other +get_subdirs(OTHER_DIRS ${CMAKE_CURRENT_SOURCE_DIR}) +foreach(subdir IN LISTS OTHER_DIRS) + add_subdirectory(${subdir}) +endforeach()