Refactored folder layout
This commit is contained in:
20
library.json
Normal file
20
library.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "Vector3D",
|
||||
"version": "1.0.0",
|
||||
"description": "Contains a V3D object for easy 3d vector math and a Matrix object for more complicated linear algebra operations.",
|
||||
"keywords": "linear algebra, vector, matrix, 3D",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Cynopolis/Vector3D.git"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Cynopolis",
|
||||
"email": "megaveganzombie@gmail.com",
|
||||
"url": "https://github.com/Cynopolis"
|
||||
}
|
||||
],
|
||||
"license": "None Yet",
|
||||
"frameworks": "*",
|
||||
"platforms": "*"
|
||||
}
|
||||
38
src/CMakeLists.txt
Normal file
38
src/CMakeLists.txt
Normal file
@@ -0,0 +1,38 @@
|
||||
# Vector 3D Interface
|
||||
add_library(vector-3d-intf
|
||||
INTERFACE
|
||||
)
|
||||
|
||||
target_include_directories(vector-3d-intf
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
# Matrix
|
||||
add_library(matrix
|
||||
STATIC
|
||||
Matrix.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(matrix
|
||||
PUBLIC
|
||||
vector-3d-intf
|
||||
PRIVATE
|
||||
)
|
||||
|
||||
set_target_properties(matrix
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
)
|
||||
|
||||
# Vector3d
|
||||
add_library(vector-3d
|
||||
STATIC
|
||||
Vector3D.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(vector-3d
|
||||
PUBLIC
|
||||
vector-3d-intf
|
||||
PRIVATE
|
||||
)
|
||||
Reference in New Issue
Block a user