summaryrefslogtreecommitdiffstats
path: root/bin/tools
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-10-29 08:48:27 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-10-29 08:48:27 +0100
commit85a0f33711fd4467b9027da85ab9e09e406398d4 (patch)
treeabe8cd4fd01a44d7237ac8258d21899606e22b00 /bin/tools
parent23211065e9be0d02f5a93c7ab1b6a95e0b38a7ba (diff)
downloaduca-85a0f33711fd4467b9027da85ab9e09e406398d4.tar.gz
uca-85a0f33711fd4467b9027da85ab9e09e406398d4.tar.bz2
uca-85a0f33711fd4467b9027da85ab9e09e406398d4.tar.xz
uca-85a0f33711fd4467b9027da85ab9e09e406398d4.zip
Cleanup CMakeLists.txt
Diffstat (limited to 'bin/tools')
-rw-r--r--bin/tools/CMakeLists.txt33
1 files changed, 16 insertions, 17 deletions
diff --git a/bin/tools/CMakeLists.txt b/bin/tools/CMakeLists.txt
index 2bec9c9..285b2d7 100644
--- a/bin/tools/CMakeLists.txt
+++ b/bin/tools/CMakeLists.txt
@@ -1,17 +1,10 @@
-cmake_minimum_required(VERSION 2.8)
-
-add_definitions("--std=c99 -Wall")
-
-# --- Find packages and libraries ---------------------------------------------
-find_package(TIFF)
-
-# --- Build targets -----------------------------------------------------------
-include_directories(
- ${CMAKE_CURRENT_BINARY_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}
- )
+cmake_minimum_required(VERSION 2.6)
+#{{{ Variables
set(libs uca)
+#}}}
+#{{{ Configure
+find_package(TIFF)
if (TIFF_FOUND)
set(HAVE_LIBTIFF "1")
@@ -21,20 +14,26 @@ endif ()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)
+#}}}
+#{{{ Targets
+include_directories(${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR})
-# --- gen-doc
+#{{{ gen-doc
add_executable(uca-gen-doc gen-doc.c)
target_link_libraries(uca-gen-doc ${libs})
-
-# --- uca-grab
+#}}}
+#{{{ uca-grab
add_executable(uca-grab
grab.c common.c)
target_link_libraries(uca-grab ringbuffer ${libs})
-
-# --- uca-benchmark
+#}}}
+#{{{ uca-benchmark
add_executable(uca-benchmark
benchmark.c common.c)
target_link_libraries(uca-benchmark ${libs})
install(TARGETS uca-benchmark uca-grab uca-gen-doc
RUNTIME DESTINATION bin)
+#}}}
+#}}}