diff --git a/CMakeLists.txt b/CMakeLists.txt index f217096..f9adf53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,4 +2,6 @@ cmake_minimum_required(VERSION 3.10) project(Geometry) +include_directories(${PROJECT_SOURCE_DIR}/include) + add_executable(Geometry main.cpp) diff --git a/include/main.h b/include/main.h new file mode 100644 index 0000000..c619cdb --- /dev/null +++ b/include/main.h @@ -0,0 +1,14 @@ +// +// Created by nb on 31.12.23. +// + +#ifndef GEOMETRY_MAIN_H +#define GEOMETRY_MAIN_H + +#include + +using namespace std; + +int main(); + +#endif //GEOMETRY_MAIN_H diff --git a/main.cpp b/main.cpp index e69de29..3d9e3e5 100644 --- a/main.cpp +++ b/main.cpp @@ -0,0 +1,6 @@ +#include "main.h" + +int main(){ + cout<<"Hello World"; + return 0; +} \ No newline at end of file