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 )