From d2af29d9ea17cd3615b08bd6bce1bad008e25905 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Wed, 9 Jul 2014 16:01:48 +0200 Subject: [PATCH] cmake: Util cleanup - replace tabs by spaces Reviewed-by: Roger Meier --- Util/CMakeLists.txt | 82 +++++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/Util/CMakeLists.txt b/Util/CMakeLists.txt index 592b33db1..1e2431592 100644 --- a/Util/CMakeLists.txt +++ b/Util/CMakeLists.txt @@ -1,52 +1,54 @@ set(LIBNAME "PocoUtil") -set( BASE_SRCS -src/AbstractConfiguration.cpp -src/JSONConfiguration.cpp -src/Application.cpp -src/ConfigurationMapper.cpp -src/ConfigurationView.cpp -src/FilesystemConfiguration.cpp -src/HelpFormatter.cpp -src/IniFileConfiguration.cpp -src/IntValidator.cpp -src/LayeredConfiguration.cpp -src/LoggingConfigurator.cpp -src/LoggingSubsystem.cpp -src/MapConfiguration.cpp -src/Option.cpp -src/OptionCallback.cpp -src/OptionException.cpp -src/OptionProcessor.cpp -src/OptionSet.cpp -src/PropertyFileConfiguration.cpp -src/RegExpValidator.cpp -src/ServerApplication.cpp -src/Subsystem.cpp -src/SystemConfiguration.cpp -src/Validator.cpp -src/XMLConfiguration.cpp -src/Timer.cpp -src/TimerTask.cpp +set(BASE_SRCS + src/AbstractConfiguration.cpp + src/Application.cpp + src/ConfigurationMapper.cpp + src/ConfigurationView.cpp + src/FilesystemConfiguration.cpp + src/HelpFormatter.cpp + src/IniFileConfiguration.cpp + src/IntValidator.cpp + src/JSONConfiguration.cpp + src/LayeredConfiguration.cpp + src/LoggingConfigurator.cpp + src/LoggingSubsystem.cpp + src/MapConfiguration.cpp + src/OptionCallback.cpp + src/Option.cpp + src/OptionException.cpp + src/OptionProcessor.cpp + src/OptionSet.cpp + src/PropertyFileConfiguration.cpp + src/RegExpValidator.cpp + src/ServerApplication.cpp + src/Subsystem.cpp + src/SystemConfiguration.cpp + src/Timer.cpp + src/TimerTask.cpp + src/Validator.cpp + src/XMLConfiguration.cpp ) set( WIN_SRCS -src/WinRegistryConfiguration.cpp -src/WinRegistryKey.cpp -src/WinService.cpp + src/WinRegistryConfiguration.cpp + src/WinRegistryKey.cpp + src/WinService.cpp ) +include_directories( "include" ) + if(CMAKE_SYSTEM MATCHES "Windows") - set(SRCS ${BASE_SRCS} ${WIN_SRCS}) - add_definitions(-DUtil_EXPORTS) + set(SRCS ${BASE_SRCS} ${WIN_SRCS}) + add_definitions(-DUtil_EXPORTS) else (CMAKE_SYSTEM MATCHES "Windows") - set(SRCS ${BASE_SRCS}) + set(SRCS ${BASE_SRCS}) endif(CMAKE_SYSTEM MATCHES "Windows") add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} ) -set_target_properties( ${LIBNAME} - PROPERTIES - VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} ) +set_target_properties( ${LIBNAME} + PROPERTIES + VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} ) target_link_libraries( ${LIBNAME} PocoJSON PocoXML PocoFoundation) install( @@ -54,7 +56,7 @@ install( DESTINATION include PATTERN ".svn" EXCLUDE ) - + install( TARGETS ${LIBNAME} LIBRARY DESTINATION lib${LIB_SUFFIX} @@ -63,6 +65,6 @@ install( ) if (ENABLE_TESTS) - add_subdirectory(samples) - add_subdirectory(testsuite) + add_subdirectory(samples) + add_subdirectory(testsuite) endif ()