CMakeLists.txt tidy-ups

Indentation fixes and remove obsolete conditional from kdelibs
This commit is contained in:
Alex Merry 2014-02-01 17:24:18 +00:00
parent b1de3377d0
commit e26bd0891d
2 changed files with 7 additions and 9 deletions

View File

@ -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)

View File

@ -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
)