2019-03-18 05:52:32 +00:00
|
|
|
# Copyright 2019, Collabora, Ltd.
|
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
|
|
|
set(MATH_SOURCE_FILES
|
|
|
|
math/m_api.h
|
|
|
|
math/m_base.cpp
|
|
|
|
math/m_eigen_interop.h
|
2019-04-01 16:10:41 +00:00
|
|
|
math/m_hash.cpp
|
|
|
|
math/m_optics.c
|
2019-03-18 05:52:32 +00:00
|
|
|
math/m_quatexpmap.cpp
|
|
|
|
)
|
|
|
|
|
2019-05-07 15:08:22 +00:00
|
|
|
set(UTIL_SOURCE_FILES
|
2019-03-18 05:52:32 +00:00
|
|
|
util/u_misc.c
|
|
|
|
util/u_misc.h
|
|
|
|
util/u_debug.c
|
|
|
|
util/u_debug.h
|
|
|
|
util/u_device.c
|
|
|
|
util/u_device.h
|
2019-04-06 11:28:56 +00:00
|
|
|
util/u_documentation.h
|
2019-04-06 11:33:01 +00:00
|
|
|
util/u_hashset.cpp
|
|
|
|
util/u_hashset.h
|
2019-03-18 05:52:32 +00:00
|
|
|
util/u_time.cpp
|
|
|
|
util/u_time.h
|
|
|
|
)
|
|
|
|
|
|
|
|
# Common includes
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../include
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2019-05-07 15:08:22 +00:00
|
|
|
# Util library.
|
2019-03-18 05:52:32 +00:00
|
|
|
# Use OBJECT to not create a archive, since it just gets in the way.
|
2019-05-07 15:08:22 +00:00
|
|
|
add_library(aux_util OBJECT ${UTIL_SOURCE_FILES})
|
2019-03-18 05:52:32 +00:00
|
|
|
set_property(TARGET aux_util PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
2019-05-07 15:08:22 +00:00
|
|
|
# Math library.
|
|
|
|
# Use OBJECT to not create a archive, since it just gets in the way.
|
2019-03-18 05:52:32 +00:00
|
|
|
add_library(aux_math OBJECT ${MATH_SOURCE_FILES})
|
2019-05-07 15:08:22 +00:00
|
|
|
set_property(TARGET aux_math PROPERTY POSITION_INDEPENDENT_CODE ON)
|
2019-03-18 05:52:32 +00:00
|
|
|
|
2019-05-07 15:08:22 +00:00
|
|
|
# Math files has extra include(s).
|
2019-03-18 05:52:32 +00:00
|
|
|
target_include_directories(aux_math SYSTEM
|
|
|
|
PRIVATE ${EIGEN3_INCLUDE_DIR}
|
|
|
|
)
|