From 7ce297e5c8dae41645266311b972380774419735 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 3 Jun 2016 11:35:01 +0200 Subject: Restructure building command line tools --- bin/tools/CMakeLists.txt | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'bin/tools') 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} -- cgit v1.2.3