diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-10-29 08:48:27 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-10-29 08:48:27 +0100 |
commit | 85a0f33711fd4467b9027da85ab9e09e406398d4 (patch) | |
tree | abe8cd4fd01a44d7237ac8258d21899606e22b00 /bin/tools | |
parent | 23211065e9be0d02f5a93c7ab1b6a95e0b38a7ba (diff) | |
download | libuca-85a0f33711fd4467b9027da85ab9e09e406398d4.tar.gz libuca-85a0f33711fd4467b9027da85ab9e09e406398d4.tar.bz2 libuca-85a0f33711fd4467b9027da85ab9e09e406398d4.tar.xz libuca-85a0f33711fd4467b9027da85ab9e09e406398d4.zip |
Cleanup CMakeLists.txt
Diffstat (limited to 'bin/tools')
-rw-r--r-- | bin/tools/CMakeLists.txt | 33 |
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) +#}}} +#}}} |