Skip to content
Permalink
Browse files

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 1cd7bde104e3f69b102b3dc3d624a990fc4f7474
Showing with 1 addition and 3 deletions.
  1. +1 −3 tests/src/gui/CMakeLists.txt
@@ -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}

0 comments on commit 1cd7bde

Please sign in to comment.
You can’t perform that action at this time.