From e26bd0891dd54e022e338bce93d95e010b11eab1 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 1 Feb 2014 17:24:18 +0000 Subject: [PATCH] CMakeLists.txt tidy-ups Indentation fixes and remove obsolete conditional from kdelibs --- CMakeLists.txt | 4 +--- tests/CMakeLists.txt | 12 ++++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea301f6..df7d02f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,4 @@ find_package(Qt5Gui ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) add_subdirectory(src) add_subdirectory(tests) -if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") - feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) -endif() +feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6069210..b57287b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -5,13 +5,13 @@ include(ECMMarkAsTest) find_package(Qt5 5.2.0 CONFIG REQUIRED Test Gui) macro(kimageformats_executable_tests) - foreach(_testname ${ARGN}) - add_executable(${_testname} ${_testname}.cpp) - target_link_libraries(${_testname} Qt5::Gui) - ecm_mark_as_test(${_testname}) - endforeach(_testname) + foreach(_testname ${ARGN}) + add_executable(${_testname} ${_testname}.cpp) + target_link_libraries(${_testname} Qt5::Gui) + ecm_mark_as_test(${_testname}) + endforeach(_testname) endmacro() kimageformats_executable_tests( - imageconverter + imageconverter )