Permalink
Browse files

Examples: Reformat CMake code

  • Loading branch information...
sanssecours committed May 7, 2018
1 parent 435b1da commit 1657f24ac17ed084a49fabcdd7d772fd6c0132fc
Showing with 11 additions and 12 deletions.
  1. +11 −12 examples/CMakeLists.txt
View
@@ -1,6 +1,6 @@
include (LibAddMacros)
#don't call add_headers in a loop
# don't call add_headers in a loop
add_headers (HDR_FILES)
macro (do_example source)
@@ -9,10 +9,9 @@ macro (do_example source)
add_executable (${source} ${SOURCES})
add_dependencies (${source} kdberrors_generated)
target_link_elektra(${source} elektra-kdb)
target_link_elektra (${source} elektra-kdb)
set_target_properties (${source} PROPERTIES
COMPILE_DEFINITIONS HAVE_KDBCONFIG_H)
set_target_properties (${source} PROPERTIES COMPILE_DEFINITIONS HAVE_KDBCONFIG_H)
endmacro (do_example)
file (GLOB TESTS *.c)
@@ -21,11 +20,11 @@ foreach (file ${TESTS})
do_example (${name})
endforeach (file ${TESTS})
target_link_elektra(cascading elektra-kdb)
target_link_elektra(ksCut elektra-kdb)
target_link_elektra(kdbget elektra-kdb)
target_link_elektra(kdbget_error elektra-kdb)
target_link_elektra(kdbintro elektra-kdb)
target_link_elektra(kdbopen elektra-kdb)
target_link_elektra(kdbset elektra-kdb)
target_link_elektra(set_key elektra-kdb)
target_link_elektra (cascading elektra-kdb)
target_link_elektra (ksCut elektra-kdb)
target_link_elektra (kdbget elektra-kdb)
target_link_elektra (kdbget_error elektra-kdb)
target_link_elektra (kdbintro elektra-kdb)
target_link_elektra (kdbopen elektra-kdb)
target_link_elektra (kdbset elektra-kdb)
target_link_elektra (set_key elektra-kdb)

0 comments on commit 1657f24

Please sign in to comment.