add_subdirectory(taglib)
add_subdirectory(bindings)
-add_subdirectory(tests)
+if(BUILD_TESTS)
+ enable_testing()
+ add_subdirectory(tests)
+endif(BUILD_TESTS)
add_subdirectory(examples)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
-if(BUILD_TESTS)
-
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}/../taglib
${CMAKE_CURRENT_SOURCE_DIR}/../taglib/toolkit
ADD_EXECUTABLE(test_runner ${test_runner_SRCS})
TARGET_LINK_LIBRARIES(test_runner tag ${CPPUNIT_LIBRARIES})
-ADD_CUSTOM_TARGET(check
- ./test_runner
- DEPENDS test_runner
-)
-endif(BUILD_TESTS)
+ADD_TEST(test_runner test_runner)