mirror of
https://github.com/threeal/cmake-action.git
synced 2026-02-02 03:50:55 +00:00
add support to run hello world target as a CMake test
This commit is contained in:
@@ -14,7 +14,9 @@ if(CHECK_SURPASS_WARNING)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
enable_testing()
|
||||
add_executable(hello_world hello_world.cpp)
|
||||
add_test(NAME hello_world COMMAND $<TARGET_FILE:hello_world>)
|
||||
|
||||
list(APPEND LANGS c cpp)
|
||||
foreach(LANG ${LANGS})
|
||||
|
||||
Reference in New Issue
Block a user