summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-06-03 11:35:01 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-06-03 11:35:01 +0200
commit7ce297e5c8dae41645266311b972380774419735 (patch)
treef3a205e59c2493a11a272c82b562647bdde5de6a /bin
parent9993014314d01407e4dfa1ecf8c58a31b2217ea2 (diff)
downloadlibuca-7ce297e5c8dae41645266311b972380774419735.tar.gz
libuca-7ce297e5c8dae41645266311b972380774419735.tar.bz2
libuca-7ce297e5c8dae41645266311b972380774419735.tar.xz
libuca-7ce297e5c8dae41645266311b972380774419735.zip
Restructure building command line tools
Diffstat (limited to 'bin')
-rw-r--r--bin/tools/CMakeLists.txt20
1 files changed, 6 insertions, 14 deletions
diff --git a/bin/tools/CMakeLists.txt b/bin/tools/CMakeLists.txt
index b310321..634b7a6 100644
--- a/bin/tools/CMakeLists.txt
+++ b/bin/tools/CMakeLists.txt
@@ -19,20 +19,12 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
include_directories(${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR})
-#{{{ gen-doc
-add_executable(uca-gen-doc gen-doc.c)
-target_link_libraries(uca-gen-doc ${libs})
-#}}}
-#{{{ uca-grab
-add_executable(uca-grab
- grab.c common.c)
-target_link_libraries(uca-grab ${libs})
-#}}}
-#{{{ uca-benchmark
-add_executable(uca-benchmark
- benchmark.c common.c)
-target_link_libraries(uca-benchmark ${libs})
-#}}}
+set(BINARIES "benchmark" "gen-doc" "grab")
+
+foreach (BINARY ${BINARIES})
+ add_executable(uca-${BINARY} ${BINARY}.c common.c)
+ target_link_libraries(uca-${BINARY} ${libs})
+endforeach ()
install(TARGETS uca-benchmark uca-grab uca-gen-doc
RUNTIME DESTINATION ${UCA_BINDIR}