[Liblas-commits] hg: [cmake] Refined configuration of unit test
package. Works. (...
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Oct 2 19:49:39 EDT 2009
changeset 50b9360209b2 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=50b9360209b2
summary: [cmake] Refined configuration of unit test package. Works. (Ticket #52)
diffstat:
CMakeLists.txt | 3 +++
test/unit/CMakeLists.txt | 3 +--
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 9110441400b4 -r 50b9360209b2 CMakeLists.txt
--- a/CMakeLists.txt Sat Oct 03 00:27:40 2009 +0100
+++ b/CMakeLists.txt Sat Oct 03 00:49:29 2009 +0100
@@ -237,5 +237,8 @@
IF(WITH_TESTS)
MESSAGE(STATUS "Adding libLAS unit test suite to build - done")
+ ENABLE_TESTING()
ADD_SUBDIRECTORY(test)
ENDIF()
+
+# EOF
diff -r 9110441400b4 -r 50b9360209b2 test/unit/CMakeLists.txt
--- a/test/unit/CMakeLists.txt Sat Oct 03 00:27:40 2009 +0100
+++ b/test/unit/CMakeLists.txt Sat Oct 03 00:49:29 2009 +0100
@@ -34,5 +34,4 @@
${GDAL_LIBRARY}
${GEOTIFF_LIBRARY})
-# TODO: Needs to tweak the executable path
-ADD_TEST(liblas_test ${EXECUTABLE_OUTPUT_PATH}/liblas_test ${CMAKE_SOURCE_DIR}/test/data)
+ADD_TEST(liblas_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/liblas_test ${CMAKE_SOURCE_DIR}/test/data)
More information about the Liblas-commits
mailing list