Do not build images.qrc for tests

Before this commit the qrc_images.cpp was generated for each test listed in
tests/src/gui/CMakeLists.txt but the content is always the same (~300k lines).

The build time for this file is quite significant too: 15sec on my machine.

This commit removes it from the test build process to avoid all this work.
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2019-01-22 14:30:47 +01:00
parent 96a9a7238a
commit 1cd7bde104

View File

@ -80,12 +80,10 @@ ENDIF(ENABLE_MODELTEST)
# ADD_TEST(qgis_quickprinttest ${CMAKE_INSTALL_PREFIX}/bin/qgis_quickprinttest)
#ENDIF (APPLE)
SET(IMAGE_RCCS ../../../images/images.qrc)
MACRO (ADD_QGIS_TEST testname testsrc)
SET(qgis_${testname}_SRCS ${testsrc} ${util_SRCS})
SET(qgis_${testname}_MOC_CPPS ${testsrc})
ADD_EXECUTABLE(qgis_${testname} ${qgis_${testname}_SRCS} ${IMAGE_RCCS})
ADD_EXECUTABLE(qgis_${testname} ${qgis_${testname}_SRCS})
SET_TARGET_PROPERTIES(qgis_${testname} PROPERTIES AUTOMOC TRUE)
SET_TARGET_PROPERTIES(qgis_${testname} PROPERTIES AUTORCC TRUE)
TARGET_LINK_LIBRARIES(qgis_${testname}