lcio/src/cpp
diff -u -r1.17 -r1.18
--- CMakeLists.txt 4 Jun 2008 17:37:15 -0000 1.17
+++ CMakeLists.txt 4 Jun 2008 18:15:30 -0000 1.18
@@ -220,7 +220,11 @@
# ==== a macro for adding binaries from the TESTS directory =====
MACRO( ADD_LCIO_CTEST file )
- ADD_EXECUTABLE( ${file} EXCLUDE_FROM_ALL ./src/TESTS/${file}.cc )
+ IF( BUILD_LCIO_TESTS )
+ ADD_EXECUTABLE( ${file} ./src/TESTS/${file}.cc )
+ ELSE()
+ ADD_EXECUTABLE( ${file} EXCLUDE_FROM_ALL ./src/TESTS/${file}.cc )
+ ENDIF()
ADD_DEPENDENCIES( tests ${file} )
TARGET_LINK_LIBRARIES( ${file} lib_${PROJECT_NAME} )
ADD_TEST( t_${file} "${EXECUTABLE_OUTPUT_PATH}/${file}" )