diff --git a/CMakeLists.txt b/CMakeLists.txt index 666fc8c..0feae89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.15..3.30) -project(block +project(VolsVecs VERSION 0.1 LANGUAGES CXX) diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 88ab4fe..dfaedd5 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -1,3 +1,3 @@ add_executable(app main.cpp) -target_link_libraries(app PRIVATE block) +target_link_libraries(app PRIVATE volsvecs) diff --git a/include/Block/block.h b/include/Block/block.h index ef33142..21eedc8 100644 --- a/include/Block/block.h +++ b/include/Block/block.h @@ -12,6 +12,8 @@ namespace Volumes{ public: virtual ~Block() = default; + double getVolume(); + private: Vector::Vector3 corners[8]; }; diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e8a8f86..f66d4cd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,9 +1,9 @@ file(GLOB HEADER_LIST CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR}/include/Block/*") -add_library(block block.cpp vector3.cpp ${HEADER_LIST}) -add_library(block::block ALIAS block) +add_library(volsvecs block.cpp vector3.cpp ${HEADER_LIST}) +add_library(VolumesVectors::volsvecs ALIAS volsvecs) -target_include_directories(block PUBLIC "${PROJECT_SOURCE_DIR}/include") +target_include_directories(volsvecs PUBLIC "${PROJECT_SOURCE_DIR}/include") source_group( TREE "${PROJECT_SOURCE_DIR}/include" diff --git a/src/block.cpp b/src/block.cpp index be1327b..ad05521 100644 --- a/src/block.cpp +++ b/src/block.cpp @@ -2,3 +2,10 @@ // Created by nb on 07.07.24. // #include "Block/block.h" + +namespace Volumes{ + double Block::getVolume() { + + return 0; + } +} \ No newline at end of file