mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
Add 'check' target which both builds and tests
This commit is contained in:
@@ -145,6 +145,7 @@ endfunction()
|
||||
if (PYBIND11_TEST)
|
||||
enable_testing()
|
||||
add_subdirectory(example)
|
||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> DEPENDS example)
|
||||
endif()
|
||||
|
||||
if (PYBIND11_INSTALL)
|
||||
|
||||
Reference in New Issue
Block a user