Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peppsac committed Jan 22, 2019
1 parent 96a9a72 commit 1cd7bde
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/src/gui/CMakeLists.txt
Expand Up @@ -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}
Expand Down

0 comments on commit 1cd7bde

Please sign in to comment.