2023-12-28 22:31:08 +08:00
|
|
|
# ##############################################################################
|
|
|
|
# Cephes library
|
|
|
|
|
|
|
|
# For both system or bundle version, a cmake target "cephes-gtsam-if" is defined
|
|
|
|
# (interface library)
|
|
|
|
|
|
|
|
|
2023-12-30 00:18:58 +08:00
|
|
|
add_subdirectory(${GTSAM_SOURCE_DIR}/gtsam/3rdparty/cephes)
|
2023-12-28 22:31:08 +08:00
|
|
|
|
2023-12-30 00:18:58 +08:00
|
|
|
list(APPEND GTSAM_EXPORTED_TARGETS cephes-gtsam)
|
2023-12-28 22:31:08 +08:00
|
|
|
|
2023-12-30 00:18:58 +08:00
|
|
|
add_library(cephes-gtsam-if INTERFACE)
|
|
|
|
target_link_libraries(cephes-gtsam-if INTERFACE cephes-gtsam)
|
2023-12-28 22:31:08 +08:00
|
|
|
|
|
|
|
list(APPEND GTSAM_EXPORTED_TARGETS cephes-gtsam-if)
|
|
|
|
install(
|
|
|
|
TARGETS cephes-gtsam-if
|
|
|
|
EXPORT GTSAM-exports
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|