From 85a0f33711fd4467b9027da85ab9e09e406398d4 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 29 Oct 2013 08:48:27 +0100 Subject: Cleanup CMakeLists.txt --- bin/tools/CMakeLists.txt | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'bin/tools') 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) +#}}} +#}}} -- cgit v1.2.3