mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-09-19 14:20:00 +00:00
CMakeLists: add enable_testing/add_test
This commit is contained in:
parent
9baa85ca82
commit
6e6e8040b7
@ -682,6 +682,10 @@ endmacro()
|
||||
#-------------------------------------------------------------------------------
|
||||
# Build targets
|
||||
|
||||
if (NOT NO_TEST)
|
||||
enable_testing()
|
||||
endif()
|
||||
|
||||
add_subdirectory(opensubdiv)
|
||||
|
||||
if (NOT ANDROID AND NOT IOS) # XXXdyu
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user