42 lines
736 B
CMake
42 lines
736 B
CMake
|
|
add_library(CMP_Math)
|
|
|
|
if(CMP_HOST_WINDOWS)
|
|
target_compile_definitions(CMP_Math PUBLIC
|
|
-DCMP_USE_XMMINTRIN
|
|
)
|
|
endif()
|
|
|
|
target_sources(CMP_Math PRIVATE
|
|
|
|
cmp_math_common.cpp
|
|
cmp_math_common.h
|
|
cmp_math_cpuid.cpp
|
|
cmp_math_cpuid.h
|
|
jml.h
|
|
jmlfuncs.cpp
|
|
jmlfuncs.h
|
|
jmlmatrix.h
|
|
jmlscalar.h
|
|
jmlssevec.h
|
|
jmlvec2.h
|
|
jmlvec3.h
|
|
jrtcommon.h
|
|
${PROJECT_SOURCE_DIR}/cmp_framework/common/mathmacros.h
|
|
tootlepch.h
|
|
)
|
|
|
|
target_include_directories(CMP_Math PUBLIC
|
|
./
|
|
${PROJECT_SOURCE_DIR}/cmp_core/shaders
|
|
${PROJECT_SOURCE_DIR}/cmp_core/source
|
|
)
|
|
|
|
target_link_libraries(CMP_Math PRIVATE
|
|
# CMP_Core
|
|
)
|
|
|
|
set_target_properties(CMP_Math PROPERTIES
|
|
FOLDER "Libs"
|
|
)
|