...
This commit is contained in:
parent
911f82eb4d
commit
1f86cfedea
@ -77,6 +77,26 @@ if (USE_XSIMD)
|
||||
add_compile_definitions(VEC_XSIMD)
|
||||
endif()
|
||||
|
||||
# ERFA library
|
||||
include(ExternalProject)
|
||||
ExternalProject_Add(erfa_lib
|
||||
PREFIX ${CMAKE_BINARY_DIR}/erfa_lib
|
||||
GIT_REPOSITORY "https://github.com/liberfa/erfa.git"
|
||||
GIT_TAG "v2.0.1"
|
||||
UPDATE_COMMAND ""
|
||||
PATCH_COMMAND ""
|
||||
# BINARY_DIR erfa_build
|
||||
# SOURCE_DIR erfa
|
||||
# INSTALL_DIR
|
||||
LOG_CONFIGURE 1
|
||||
CONFIGURE_COMMAND meson setup --reconfigure -Ddefault_library=static -Dbuildtype=release -Dc_args='-march=native' -Doptimization=3
|
||||
-Dprefix=${CMAKE_BINARY_DIR}/erfa_lib -Dlibdir= -Dincludedir= -Ddatadir= <SOURCE_DIR>
|
||||
BUILD_COMMAND ninja -C <BINARY_DIR>
|
||||
INSTALL_COMMAND meson install -C <BINARY_DIR>
|
||||
)
|
||||
add_library(erfa STATIC IMPORTED)
|
||||
set_target_properties(erfa PROPERTIES IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/erfa_lib/liberfa.a)
|
||||
|
||||
|
||||
option(WITH_TESTS "Build tests" ON)
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
|
||||
#include <concepts>
|
||||
#include <cstddef>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <unordered_map>
|
||||
#include <variant>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user