mirror of
https://github.com/threeal/cmake-action.git
synced 2026-02-02 03:50:55 +00:00
separate test target into 2 for C and C++
This commit is contained in:
@@ -12,4 +12,5 @@ if(BUILD_CXX)
|
||||
add_executable(hello_world hello_world.cpp)
|
||||
endif()
|
||||
|
||||
add_executable(test EXCLUDE_FROM_ALL test.cpp)
|
||||
add_executable(test_c EXCLUDE_FROM_ALL test.c)
|
||||
add_executable(test_cpp EXCLUDE_FROM_ALL test.cpp)
|
||||
|
||||
3
test/test.c
Normal file
3
test/test.c
Normal file
@@ -0,0 +1,3 @@
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user