zeus/CMakeLists.txt

72 lines
1.8 KiB
CMake
Raw Normal View History

2017-11-14 04:53:41 +00:00
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
2015-08-25 06:56:05 +00:00
project(zeus)
2020-04-11 05:02:01 +00:00
if (NOT MSVC)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
2017-06-18 02:53:08 +00:00
set(SOURCES
src/CVector3f.cpp
src/Math.cpp
src/CQuaternion.cpp
src/CMatrix3f.cpp
src/CProjection.cpp
src/CPlane.cpp
2017-11-28 02:46:40 +00:00
src/CFrustum.cpp
src/CTransform.cpp
src/CColor.cpp
src/CVector2f.cpp
src/CMatrix4f.cpp
2017-03-20 05:06:53 +00:00
src/CAABox.cpp
2018-11-09 00:25:26 +00:00
src/COBBox.cpp
2017-03-20 05:06:53 +00:00
src/CEulerAngles.cpp)
add_library(zeus
${SOURCES}
2016-03-04 23:03:26 +00:00
include/zeus/Math.hpp
include/zeus/CQuaternion.hpp
include/zeus/CMatrix3f.hpp
include/zeus/CProjection.hpp
include/zeus/CAxisAngle.hpp
include/zeus/CRelAngle.hpp
include/zeus/CPlane.hpp
include/zeus/CTransform.hpp
include/zeus/CColor.hpp
include/zeus/Global.hpp
include/zeus/zeus.hpp
include/zeus/CVector2i.hpp
include/zeus/CVector2f.hpp
include/zeus/CVector3f.hpp
include/zeus/CVector3d.hpp
include/zeus/CVector4f.hpp
include/zeus/CRectangle.hpp
include/zeus/CMatrix4f.hpp
include/zeus/CFrustum.hpp
include/zeus/CAABox.hpp
include/zeus/COBBox.hpp
2017-03-30 22:35:40 +00:00
include/zeus/CLine.hpp
2016-04-26 10:36:44 +00:00
include/zeus/CLineSeg.hpp
2016-03-04 23:03:26 +00:00
include/zeus/CSphere.hpp
include/zeus/CUnitVector.hpp
2017-03-20 05:06:53 +00:00
include/zeus/CMRay.hpp
2018-12-08 01:16:50 +00:00
include/zeus/CEulerAngles.hpp
include/zeus/simd/simd.hpp
include/zeus/simd/simd_sse.hpp
include/zeus/simd/simd_avx.hpp
include/zeus/simd/parallelism_v2_simd.hpp)
2015-07-20 02:57:16 +00:00
2019-06-12 02:04:52 +00:00
target_include_directories(zeus PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
if(TARGET athena-core)
target_link_libraries(zeus PUBLIC athena-core)
target_compile_definitions(zeus PUBLIC ZE_ATHENA_TYPES=1)
endif()
2020-09-28 20:53:49 +00:00
if(TARGET hsh)
target_link_libraries(zeus PUBLIC hsh)
target_compile_definitions(zeus PUBLIC ZE_HSH_TYPES=1)
endif()
2015-08-25 06:56:05 +00:00
add_subdirectory(test)