Add Lib: Reformat CMake code
@@ -3,8 +3,7 @@ function(add_lib name)
"CPP" # optional keywords
"" # one value keywords
"SOURCES;LINK_LIBRARIES;LINK_ELEKTRA" # multi value keywords
- ${ARGN}
- )
+ ${ARGN})
add_headers (ARG_SOURCES)
if (ARG_CPP)
@@ -18,17 +17,12 @@ function(add_lib name)
target_link_libraries (elektra-${name} elektra-core ${ARG_LINK_ELEKTRA})
endif (BUILD_SHARED)
- set_property (GLOBAL APPEND PROPERTY "elektra-full_SRCS"
- ${ARG_SOURCES}
- )
+ set_property (GLOBAL APPEND PROPERTY "elektra-full_SRCS" ${ARG_SOURCES})
- set_property (GLOBAL APPEND PROPERTY "elektra-extension_LIBRARIES"
- elektra-${name}
- )
+ set_property (GLOBAL APPEND PROPERTY "elektra-extension_LIBRARIES" elektra-${name})
if (BUILD_SHARED)
- target_link_libraries (elektra-${name}
- ${ARG_LINK_LIBRARIES})
+ target_link_libraries (elektra-${name} ${ARG_LINK_LIBRARIES})
install (TARGETS elektra-${name} DESTINATION lib${LIB_SUFFIX} EXPORT ElektraTargetsLibelektra)
endif (BUILD_SHARED)
