CMakeLists: add enable_testing/add_test

This commit is contained in:
Takahito Tejima 2015-04-16 10:52:08 -07:00
parent 9baa85ca82
commit 6e6e8040b7
5 changed files with 12 additions and 0 deletions

View File

@ -682,6 +682,10 @@ endmacro()
#-------------------------------------------------------------------------------
# Build targets
if (NOT NO_TEST)
enable_testing()
endif()
add_subdirectory(opensubdiv)
if (NOT ANDROID AND NOT IOS) # XXXdyu

View File

@ -73,3 +73,5 @@ target_link_libraries(glImaging
)
install(TARGETS glImaging DESTINATION "${CMAKE_BINDIR_BASE}")
add_test(glImaging ${EXECUTABLE_OUTPUT_PATH}/glImaging -w test -l 3 -s 256 256 -a)

View File

@ -42,3 +42,5 @@ _add_executable(far_regression
install(TARGETS far_regression DESTINATION "${CMAKE_BINDIR_BASE}")
add_test(far_regression ${EXECUTABLE_OUTPUT_PATH}/far_regression)

View File

@ -62,3 +62,5 @@ target_link_libraries(osd_regression
)
install(TARGETS osd_regression DESTINATION "${CMAKE_BINDIR_BASE}")
add_test(osd_regression ${EXECUTABLE_OUTPUT_PATH}/osd_regression)

View File

@ -39,6 +39,8 @@ foreach(tutorial ${TUTORIALS})
list(APPEND TUTORIAL_TARGETS "far_${tutorial}")
add_test(far_${tutorial} ${EXECUTABLE_OUTPUT_PATH}/far_${tutorial})
endforeach()
add_custom_target(far_tutorials DEPENDS ${TUTORIAL_TARGETS})