summaryrefslogtreecommitdiffstats
path: root/bin/tools/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tools/CMakeLists.txt')
-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)
+#}}}
+#}}}