added getvolumestub to block
This commit is contained in:
parent
a00a92a0ee
commit
10c35064dd
@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.15..3.30)
|
||||
|
||||
project(block
|
||||
project(VolsVecs
|
||||
VERSION 0.1
|
||||
LANGUAGES CXX)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
add_executable(app main.cpp)
|
||||
|
||||
target_link_libraries(app PRIVATE block)
|
||||
target_link_libraries(app PRIVATE volsvecs)
|
||||
|
@ -12,6 +12,8 @@ namespace Volumes{
|
||||
public:
|
||||
virtual ~Block() = default;
|
||||
|
||||
double getVolume();
|
||||
|
||||
private:
|
||||
Vector::Vector3 corners[8];
|
||||
};
|
||||
|
@ -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"
|
||||
|
@ -2,3 +2,10 @@
|
||||
// Created by nb on 07.07.24.
|
||||
//
|
||||
#include "Block/block.h"
|
||||
|
||||
namespace Volumes{
|
||||
double Block::getVolume() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user