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-10-09 15:39:38 +00:00
|
|
|
set(OGL_SOURCE_FILES
|
|
|
|
ogl/ogl_api.c
|
|
|
|
ogl/ogl_api.h
|
|
|
|
ogl/ogl_documentation.h
|
|
|
|
)
|
|
|
|
|
2019-05-03 14:47:45 +00:00
|
|
|
set(OS_SOURCE_FILES
|
|
|
|
os/os_documentation.h
|
|
|
|
os/os_hid.h
|
|
|
|
os/os_hid_hidraw.c
|
2019-09-13 18:34:10 +00:00
|
|
|
os/os_threading.h
|
2019-05-03 14:47:45 +00:00
|
|
|
)
|
|
|
|
|
2019-07-23 16:29:14 +00:00
|
|
|
set(TRACKING_SOURCE_FILES
|
|
|
|
tracking/t_calibration.cpp
|
2019-09-26 21:00:45 +00:00
|
|
|
tracking/t_calibration_opencv.h
|
2019-07-23 16:29:14 +00:00
|
|
|
tracking/t_convert.cpp
|
|
|
|
tracking/t_debug_hsv_filter.cpp
|
|
|
|
tracking/t_debug_hsv_picker.cpp
|
|
|
|
tracking/t_debug_hsv_viewer.cpp
|
2019-09-29 14:30:11 +00:00
|
|
|
tracking/t_file.cpp
|
2019-10-02 21:58:52 +00:00
|
|
|
tracking/t_fusion.h
|
2019-07-23 16:29:14 +00:00
|
|
|
tracking/t_hsv_filter.c
|
2019-10-10 16:28:42 +00:00
|
|
|
tracking/t_imu_fusion.h
|
|
|
|
tracking/t_imu.cpp
|
|
|
|
tracking/t_imu.h
|
2019-09-21 18:04:48 +00:00
|
|
|
tracking/t_tracker_psmv.cpp
|
2019-09-21 18:08:11 +00:00
|
|
|
tracking/t_tracker_psvr.cpp
|
2019-07-23 16:29:14 +00:00
|
|
|
tracking/t_tracking.h
|
|
|
|
)
|
|
|
|
|
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-07-22 21:41:03 +00:00
|
|
|
util/u_format.c
|
|
|
|
util/u_format.h
|
2019-08-22 13:15:41 +00:00
|
|
|
util/u_frame.c
|
|
|
|
util/u_frame.h
|
2019-05-07 15:03:38 +00:00
|
|
|
util/u_hashmap.cpp
|
|
|
|
util/u_hashmap.h
|
2019-04-06 11:33:01 +00:00
|
|
|
util/u_hashset.cpp
|
|
|
|
util/u_hashset.h
|
2019-07-23 12:38:58 +00:00
|
|
|
util/u_sink.h
|
2019-08-22 13:15:41 +00:00
|
|
|
util/u_sink_converter.c
|
|
|
|
util/u_sink_queue.c
|
2019-09-03 09:07:20 +00:00
|
|
|
util/u_sink_split.c
|
2019-03-18 05:52:32 +00:00
|
|
|
util/u_time.cpp
|
|
|
|
util/u_time.h
|
2019-08-31 11:46:25 +00:00
|
|
|
util/u_var.cpp
|
|
|
|
util/u_var.h
|
2019-03-18 05:52:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Common includes
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../include
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2019-10-09 15:39:38 +00:00
|
|
|
# OpenGL library.
|
|
|
|
# Use OBJECT to not create a archive, since it just gets in the way.
|
|
|
|
add_library(aux_ogl OBJECT ${OGL_SOURCE_FILES})
|
|
|
|
set_property(TARGET aux_ogl PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
target_include_directories(aux_ogl SYSTEM
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../external
|
|
|
|
)
|
|
|
|
|
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-03 14:47:45 +00:00
|
|
|
# OS library.
|
|
|
|
add_library(aux_os OBJECT ${OS_SOURCE_FILES})
|
|
|
|
set_property(TARGET aux_os 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}
|
|
|
|
)
|
2019-07-23 16:29:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
if(BUILD_TRACKING)
|
|
|
|
# Tracking library.
|
|
|
|
# Use OBJECT to not create a archive, since it just gets in the way.
|
|
|
|
add_library(aux_tracking OBJECT ${TRACKING_SOURCE_FILES})
|
|
|
|
set_property(TARGET aux_tracking PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
2019-10-02 21:58:52 +00:00
|
|
|
# Tracking files have extra includes.
|
2019-07-23 16:29:14 +00:00
|
|
|
target_include_directories(aux_tracking SYSTEM
|
|
|
|
PRIVATE
|
|
|
|
${EIGEN3_INCLUDE_DIR}
|
|
|
|
${OpenCV_INCLUDE_DIRS}
|
2019-10-02 21:58:52 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../external
|
2019-07-23 16:29:14 +00:00
|
|
|
)
|
|
|
|
endif()
|