From 2391f1db8fef12546675c403d08132540ccfd628 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Wed, 11 Jan 2023 15:50:37 +0700 Subject: [PATCH] add `test` target for testing `targets` input --- test/CMakeLists.txt | 2 ++ test/test.cpp | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 test/test.cpp diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8e4200e..813ceb9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -11,3 +11,5 @@ endif() if(BUILD_CXX) add_executable(hello_world hello_world.cpp) endif() + +add_executable(test EXCLUDE_FROM_ALL test.cpp) diff --git a/test/test.cpp b/test/test.cpp new file mode 100644 index 0000000..4cce7f6 --- /dev/null +++ b/test/test.cpp @@ -0,0 +1,3 @@ +int main() { + return 0; +}