From f114fd57cf61c21b2c1046585702d8f82c6bc337 Mon Sep 17 00:00:00 2001 From: Mark Schofield Date: Wed, 12 Jul 2023 19:20:42 -0700 Subject: [PATCH] Add a non-CXX example, CommandLineC --- example/CMakeLists.txt | 1 + example/CommandLineC/CMakeLists.txt | 9 +++++++++ example/CommandLineC/main.c | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 example/CommandLineC/CMakeLists.txt create mode 100644 example/CommandLineC/main.c diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 7db9f73..11fc656 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -11,6 +11,7 @@ add_compile_definitions( ) add_subdirectory(CommandLine) +add_subdirectory(CommandLineC) add_subdirectory(SharedLibrary) add_subdirectory(WindowsApplication) diff --git a/example/CommandLineC/CMakeLists.txt b/example/CommandLineC/CMakeLists.txt new file mode 100644 index 0000000..ca74e83 --- /dev/null +++ b/example/CommandLineC/CMakeLists.txt @@ -0,0 +1,9 @@ +#---------------------------------------------------------------------------------------------------------------------- +# +#---------------------------------------------------------------------------------------------------------------------- +project(CommandLineC LANGUAGES C) + +add_executable(CommandLineC + main.c +) + diff --git a/example/CommandLineC/main.c b/example/CommandLineC/main.c new file mode 100644 index 0000000..7ab588b --- /dev/null +++ b/example/CommandLineC/main.c @@ -0,0 +1,6 @@ +#include + +int main(int argc, char* argv[]) +{ + printf("Hello, World!"); +}