Skip to content
Permalink
Browse files
Added line and polygon tests for filewriter and projected writing tes…
…t. Fixed cmake so tests run properly on mac - still need ot test on other osses.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7207 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 17, 2007
1 parent 35f21c9 commit cacdefc26c6b6d2091e525caf5c2d94376ccc078
Showing with 398 additions and 67 deletions.
  1. +14 −6 tests/src/core/CMakeLists.txt
  2. +384 −61 tests/src/core/testqgsvectorfilewriter.cpp
@@ -62,9 +62,13 @@ ADD_CUSTOM_TARGET(applicationtestmoc ALL DEPENDS ${applicationtest_MOC_SRCS})
ADD_EXECUTABLE(applicationtest ${applicationtest_SRCS})
ADD_DEPENDENCIES(applicationtest applicationtestmoc)
TARGET_LINK_LIBRARIES(applicationtest ${QT_LIBRARIES} qgis_core)
INSTALL(TARGETS applicationtest RUNTIME DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
ADD_TEST(application ${CMAKE_CURRENT_BINARY_DIR}/applicationtest)

IF (APPLE)
INSTALL(TARGETS applicationtest RUNTIME DESTINATION ${QGIS_BIN_DIR}/../)
ADD_TEST(application ${QGIS_BIN_DIR}/../applicationtest)
ELSE (APPLE)
INSTALL(TARGETS applicationtest RUNTIME DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
ADD_TEST(application ${CMAKE_CURRENT_BINARY_DIR}/applicationtest)
ENDIF (APPLE)
#
# QgsFileWriter test
#
@@ -75,8 +79,12 @@ ADD_CUSTOM_TARGET(filewritertestmoc ALL DEPENDS ${filewritertest_MOC_SRCS})
ADD_EXECUTABLE(filewritertest ${filewritertest_SRCS})
ADD_DEPENDENCIES(filewritertest filewritertestmoc)
TARGET_LINK_LIBRARIES(filewritertest ${QT_LIBRARIES} qgis_core)
INSTALL(TARGETS filewritertest RUNTIME DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
ADD_TEST(filewriter ${CMAKE_CURRENT_BINARY_DIR}/filewritertest)

IF (APPLE)
INSTALL(TARGETS filewritertest RUNTIME DESTINATION ${QGIS_BIN_DIR}/../)
ADD_TEST(filewriter ${QGIS_BIN_DIR}/../filewritertest)
ELSE (APPLE)
INSTALL(TARGETS filewritertest RUNTIME DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
ADD_TEST(filewriter ${CMAKE_CURRENT_BINARY_DIR}/filewritertest)
ENDIF (APPLE)


0 comments on commit cacdefc

Please sign in to comment.