Skip to content

Commit

Permalink
Add a non-CXX example, CommandLineC
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSchofield committed Jul 13, 2023
1 parent 6ae1bfa commit f114fd5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ add_compile_definitions(
)

add_subdirectory(CommandLine)
add_subdirectory(CommandLineC)
add_subdirectory(SharedLibrary)
add_subdirectory(WindowsApplication)

Expand Down
9 changes: 9 additions & 0 deletions example/CommandLineC/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#----------------------------------------------------------------------------------------------------------------------
#
#----------------------------------------------------------------------------------------------------------------------
project(CommandLineC LANGUAGES C)

add_executable(CommandLineC
main.c
)

6 changes: 6 additions & 0 deletions example/CommandLineC/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <stdio.h>

int main(int argc, char* argv[])
{
printf("Hello, World!");
}

0 comments on commit f114fd5

Please sign in to comment.