Skip to content
Permalink
Browse files
For all platforms install tests when tests are enabled
git-svn-id: http://svn.osgeo.org/qgis/trunk@7214 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 21, 2007
1 parent 0835a14 commit 8793e283dd5da159348056c8d43b4bbb30f79ea0
Showing with 9 additions and 7 deletions.
  1. +9 −7 tests/src/core/CMakeLists.txt
@@ -79,12 +79,14 @@ 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)
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)



#
# We need to install to a path
#

INSTALL(TARGETS filewritertest RUNTIME DESTINATION ${QGIS_BIN_DIR}/../)
ADD_TEST(filewriter ${QGIS_BIN_DIR}/../filewritertest)


0 comments on commit 8793e28

Please sign in to comment.