From 67677fbb81d7ef3ea44dc96a14f5cb189dc4b996 Mon Sep 17 00:00:00 2001 From: Lokkit Sanjay Babu Narayanan <143468302+lokkitbabu@users.noreply.github.com> Date: Sun, 29 Sep 2024 14:21:44 -0400 Subject: [PATCH] Add files via upload --- CMakeLists.txt | 15 +++------------ HelloWorld.cpp | 6 ++++++ 2 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 HelloWorld.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 98c6be8..923b9ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,3 @@ -cmake_minimum_required(VERSION 3.0) -include(GNUInstallDirs) -project(HelloApp - VERSION 1.0 - LANGUAGES CXX -) - -find_package(HelloLibrary REQUIRED) -add_executable(HelloExec main.cpp) -target_link_libraries(HelloExec PRIVATE HelloLibrary::HelloLibrary) - -install(TARGETS HelloExec DESTINATION bin) \ No newline at end of file +cmake_minimum_required(VERSION 3.24) +project(hello_world LANGUAGES CXX) +add_executable(test HelloWorld.cpp) \ No newline at end of file diff --git a/HelloWorld.cpp b/HelloWorld.cpp new file mode 100644 index 0000000..28d35bc --- /dev/null +++ b/HelloWorld.cpp @@ -0,0 +1,6 @@ +#include + +int main() +{ + std::cout << "Hello, World!\n"; +} \ No newline at end of file