diff --git a/Sayan/lab1_hard_project/CMakeLists.txt b/Sayan/lab1_hard_project/CMakeLists.txt new file mode 100644 index 0000000..29f7b7a --- /dev/null +++ b/Sayan/lab1_hard_project/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.15...3.30) + +project( + lab1Example + VERSION 1.0 + LANGUAGES CXX) + +add_library(HelloWorldlib STATIC src/hello_world.cpp include/hello_world.h) + +target_include_directories(HelloWorldlib PUBLIC include) + +# target_compile_features(HelloWorldlib PUBLIC cxx_std_11) + +add_executable(main src/main.cpp) + +target_link_libraries(main PUBLIC HelloWorldlib) \ No newline at end of file diff --git a/Sayan/lab1_hard_project/include/hello_world.h b/Sayan/lab1_hard_project/include/hello_world.h new file mode 100644 index 0000000..d621ee6 --- /dev/null +++ b/Sayan/lab1_hard_project/include/hello_world.h @@ -0,0 +1,8 @@ +#pragma once +// #include + +class hello_world +{ +public: + void static write_hello_world(); +}; \ No newline at end of file diff --git a/Sayan/lab1_hard_project/src/hello_world.cpp b/Sayan/lab1_hard_project/src/hello_world.cpp new file mode 100644 index 0000000..b00ff3c --- /dev/null +++ b/Sayan/lab1_hard_project/src/hello_world.cpp @@ -0,0 +1,7 @@ +#include "/Users/sayandahiya/Desktop/Hytech/lab1_hard_project/include/hello_world.h" +#include + +void hello_world::write_hello_world() +{ + std::cout << "Hello World"; +} \ No newline at end of file diff --git a/Sayan/lab1_hard_project/src/main.cpp b/Sayan/lab1_hard_project/src/main.cpp new file mode 100644 index 0000000..3e72325 --- /dev/null +++ b/Sayan/lab1_hard_project/src/main.cpp @@ -0,0 +1,7 @@ + +#include + +int main() +{ + hello_world::write_hello_world(); +} \ No newline at end of file