mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
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:
parent
96a9a7238a
commit
1cd7bde104
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user