Initial commit

This commit is contained in:
2026-04-18 11:05:46 +03:00
committed by Mikhail Romanko
commit 415ec3ecd3
24 changed files with 2234 additions and 0 deletions

40
CMakeLists.txt Normal file
View File

@@ -0,0 +1,40 @@
cmake_minimum_required(VERSION 3.10)
project(CgeMath LANGUAGES C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(SOURCES
Box2f.c
Box3f.c
Line.c
Mat3f.c
Mat4f.c
Misc.c
Plane.c
Quat4f.c
Ray2f.c
Ray3f.c
Vec2f.c
Vec2i.c
Vec3f.c
Vec3i.c
Vec4f.c
Vec4i.c
)
set(HEADERS
CgeMath.h
)
add_library(CgeMath STATIC ${SOURCES} ${HEADERS})
target_include_directories(CgeMath PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
install(TARGETS CgeMath
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
install(FILES ${HEADERS} DESTINATION include)