added getvolumestub to block

This commit is contained in:
Karl-Wilfried Zimmer 2024-07-07 20:54:14 +02:00
parent a00a92a0ee
commit 10c35064dd
5 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.15..3.30)
project(block
project(VolsVecs
VERSION 0.1
LANGUAGES CXX)

View File

@ -1,3 +1,3 @@
add_executable(app main.cpp)
target_link_libraries(app PRIVATE block)
target_link_libraries(app PRIVATE volsvecs)

View File

@ -12,6 +12,8 @@ namespace Volumes{
public:
virtual ~Block() = default;
double getVolume();
private:
Vector::Vector3 corners[8];
};

View File

@ -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"

View File

@ -2,3 +2,10 @@
// Created by nb on 07.07.24.
//
#include "Block/block.h"
namespace Volumes{
double Block::getVolume() {
return 0;
}
}