casadi 3.6.7__cp27-none-manylinux1_i686.whl → 3.7.1__cp27-none-manylinux1_i686.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- casadi/_casadi.so +0 -0
- casadi/casadi-cli +0 -0
- casadi/casadi.py +6529 -3037
- casadi/cbc +0 -0
- casadi/clp +0 -0
- casadi/cmake/casadi-config-version.cmake +1 -1
- casadi/cmake/casadi-config.cmake +1 -1
- casadi/cmake/casadi-targets-release.cmake +5 -5
- casadi/cmake/casadi-targets.cmake +5 -5
- casadi/{lib/cmake/tinyxml2/tinyxml2-config-version.cmake → cmake/libzip/libzip-config-version.cmake} +4 -18
- casadi/cmake/libzip/libzip-config.cmake +69 -0
- casadi/cmake/libzip/libzip-targets-release.cmake +19 -0
- casadi/{lib/cmake/tinyxml2/tinyxml2-static-targets.cmake → cmake/libzip/libzip-targets.cmake} +11 -7
- casadi/cmake/libzip/modules/FindMbedTLS.cmake +141 -0
- casadi/cmake/libzip/modules/FindNettle.cmake +141 -0
- casadi/cmake/libzip/modules/Findzstd.cmake +186 -0
- casadi/include/casadi/casadi.i +276 -47
- casadi/include/casadi/config.h +11 -11
- casadi/include/casadi/core/archiver.hpp +58 -0
- casadi/include/casadi/core/blazing_spline.hpp +47 -0
- casadi/include/casadi/core/calculus.hpp +57 -2
- casadi/include/casadi/core/callback.hpp +9 -0
- casadi/include/casadi/core/casadi_common.hpp +37 -0
- casadi/include/casadi/core/casadi_meta.hpp +15 -0
- casadi/include/casadi/core/casadi_misc.hpp +21 -0
- casadi/include/casadi/core/code_generator.hpp +115 -19
- casadi/include/casadi/core/core.hpp +5 -0
- casadi/include/casadi/core/dae_builder.hpp +303 -141
- casadi/include/casadi/core/dm.hpp +3 -0
- casadi/include/casadi/core/filesystem.hpp +58 -0
- casadi/include/casadi/core/fmu.hpp +62 -16
- casadi/include/casadi/core/function.hpp +24 -0
- casadi/include/casadi/core/generic_matrix.hpp +214 -7
- casadi/include/casadi/core/generic_shared.hpp +395 -0
- casadi/include/casadi/core/generic_shared_impl.hpp +218 -0
- casadi/include/casadi/core/generic_shared_internal.hpp +215 -0
- casadi/include/casadi/core/generic_type.hpp +3 -0
- casadi/include/casadi/core/global_options.hpp +10 -0
- casadi/include/casadi/core/integrator.hpp +41 -7
- casadi/include/casadi/core/matrix_decl.hpp +71 -0
- casadi/include/casadi/core/mx.hpp +63 -2
- casadi/include/casadi/core/nlp_builder.hpp +2 -1
- casadi/include/casadi/core/options.hpp +6 -3
- casadi/include/casadi/core/optistack.hpp +43 -9
- casadi/include/casadi/core/printable.hpp +8 -0
- casadi/include/casadi/core/resource.hpp +107 -0
- casadi/include/casadi/core/runtime/casadi_blazing_1d_boor_eval.hpp +112 -0
- casadi/include/casadi/core/runtime/casadi_blazing_2d_boor_eval.hpp +311 -0
- casadi/include/casadi/core/runtime/casadi_blazing_3d_boor_eval.hpp +645 -0
- casadi/include/casadi/core/runtime/casadi_blazing_de_boor.hpp +101 -0
- casadi/include/casadi/core/runtime/casadi_finite_diff.hpp +1 -1
- casadi/include/casadi/core/runtime/casadi_nlp.hpp +8 -2
- casadi/include/casadi/core/runtime/casadi_print_canonical.hpp +55 -0
- casadi/include/casadi/core/runtime/casadi_print_scalar.hpp +25 -0
- casadi/include/casadi/core/runtime/casadi_print_vector.hpp +32 -0
- casadi/include/casadi/core/runtime/casadi_printme.hpp +26 -0
- casadi/include/casadi/core/serializer.hpp +13 -5
- casadi/include/casadi/core/serializing_stream.hpp +9 -2
- casadi/include/casadi/core/shared_object.hpp +73 -161
- casadi/include/casadi/core/sparsity.hpp +13 -1
- casadi/include/casadi/core/sparsity_interface.hpp +19 -1
- casadi/include/casadi/core/sx.hpp +41 -0
- casadi/include/casadi/core/sx_elem.hpp +25 -0
- casadi/include/casadi/core/xml_node.hpp +5 -0
- casadi/include/casadi/doc.i +10026 -6513
- casadi/include/casadi/doc_merged.i +6744 -4449
- casadi/include/casadi/valgrind-casadi.supp +138 -0
- casadi/include/casadi/valgrind-python.supp +2470 -0
- casadi/include/licenses/libz-external/LICENSE +22 -0
- casadi/include/licenses/libz-external/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- casadi/include/licenses/libzip-external/LICENSE +31 -0
- casadi/libCbcSolver.so +0 -0
- casadi/libCbcSolver.so.3 +0 -0
- casadi/libCbcSolver.so.3.10.11 +0 -0
- casadi/libClpSolver.so +0 -0
- casadi/libClpSolver.so.1 +0 -0
- casadi/libClpSolver.so.1.14.9 +0 -0
- casadi/libbonmin.so +0 -0
- casadi/libbonmin.so.4 +0 -0
- casadi/libbonmin.so.4.8.9 +0 -0
- casadi/libcasadi.so +0 -0
- casadi/libcasadi.so.3.7 +0 -0
- casadi/libcasadi_archiver_libzip.so +0 -0
- casadi/libcasadi_archiver_libzip.so.3.7 +0 -0
- casadi/libcasadi_conic_cbc.so +0 -0
- casadi/libcasadi_conic_cbc.so.3.7 +0 -0
- casadi/libcasadi_conic_clp.so +0 -0
- casadi/libcasadi_conic_clp.so.3.7 +0 -0
- casadi/libcasadi_conic_daqp.so +0 -0
- casadi/libcasadi_conic_daqp.so.3.7 +0 -0
- casadi/libcasadi_conic_gurobi.so +0 -0
- casadi/libcasadi_conic_gurobi.so.3.7 +0 -0
- casadi/libcasadi_conic_ipqp.so +0 -0
- casadi/libcasadi_conic_ipqp.so.3.7 +0 -0
- casadi/libcasadi_conic_nlpsol.so +0 -0
- casadi/libcasadi_conic_nlpsol.so.3.7 +0 -0
- casadi/libcasadi_conic_osqp.so +0 -0
- casadi/libcasadi_conic_osqp.so.3.7 +0 -0
- casadi/libcasadi_conic_qpoases.so +0 -0
- casadi/libcasadi_conic_qpoases.so.3.7 +0 -0
- casadi/libcasadi_conic_qrqp.so +0 -0
- casadi/libcasadi_conic_qrqp.so.3.7 +0 -0
- casadi/libcasadi_conic_superscs.so +0 -0
- casadi/libcasadi_conic_superscs.so.3.7 +0 -0
- casadi/libcasadi_importer_shell.so +0 -0
- casadi/libcasadi_importer_shell.so.3.7 +0 -0
- casadi/libcasadi_integrator_collocation.so +0 -0
- casadi/libcasadi_integrator_collocation.so.3.7 +0 -0
- casadi/libcasadi_integrator_cvodes.so +0 -0
- casadi/libcasadi_integrator_cvodes.so.3.7 +0 -0
- casadi/libcasadi_integrator_idas.so +0 -0
- casadi/libcasadi_integrator_idas.so.3.7 +0 -0
- casadi/libcasadi_integrator_rk.so +0 -0
- casadi/libcasadi_integrator_rk.so.3.7 +0 -0
- casadi/libcasadi_interpolant_bspline.so +0 -0
- casadi/libcasadi_interpolant_bspline.so.3.7 +0 -0
- casadi/libcasadi_interpolant_linear.so +0 -0
- casadi/libcasadi_interpolant_linear.so.3.7 +0 -0
- casadi/libcasadi_linsol_csparse.so +0 -0
- casadi/libcasadi_linsol_csparse.so.3.7 +0 -0
- casadi/libcasadi_linsol_csparsecholesky.so +0 -0
- casadi/libcasadi_linsol_csparsecholesky.so.3.7 +0 -0
- casadi/libcasadi_linsol_lapacklu.so +0 -0
- casadi/libcasadi_linsol_lapacklu.so.3.7 +0 -0
- casadi/libcasadi_linsol_lapackqr.so +0 -0
- casadi/libcasadi_linsol_lapackqr.so.3.7 +0 -0
- casadi/libcasadi_linsol_ldl.so +0 -0
- casadi/libcasadi_linsol_ldl.so.3.7 +0 -0
- casadi/libcasadi_linsol_lsqr.so +0 -0
- casadi/libcasadi_linsol_lsqr.so.3.7 +0 -0
- casadi/libcasadi_linsol_ma27.so +0 -0
- casadi/libcasadi_linsol_ma27.so.3.7 +0 -0
- casadi/libcasadi_linsol_mumps.so +0 -0
- casadi/libcasadi_linsol_mumps.so.3.7 +0 -0
- casadi/libcasadi_linsol_qr.so +0 -0
- casadi/libcasadi_linsol_qr.so.3.7 +0 -0
- casadi/libcasadi_linsol_symbolicqr.so +0 -0
- casadi/libcasadi_linsol_symbolicqr.so.3.7 +0 -0
- casadi/libcasadi_linsol_tridiag.so +0 -0
- casadi/libcasadi_linsol_tridiag.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_ampl.so +0 -0
- casadi/libcasadi_nlpsol_ampl.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_blocksqp.so +0 -0
- casadi/libcasadi_nlpsol_blocksqp.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_bonmin.so +0 -0
- casadi/libcasadi_nlpsol_bonmin.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_feasiblesqpmethod.so +0 -0
- casadi/libcasadi_nlpsol_feasiblesqpmethod.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_ipopt.so +0 -0
- casadi/libcasadi_nlpsol_ipopt.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_knitro.so +0 -0
- casadi/libcasadi_nlpsol_knitro.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_madnlp.so +0 -0
- casadi/libcasadi_nlpsol_madnlp.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_qrsqp.so +0 -0
- casadi/libcasadi_nlpsol_qrsqp.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_scpgen.so +0 -0
- casadi/libcasadi_nlpsol_scpgen.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_snopt.so +0 -0
- casadi/libcasadi_nlpsol_snopt.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_sqpmethod.so +0 -0
- casadi/libcasadi_nlpsol_sqpmethod.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_worhp.so +0 -0
- casadi/libcasadi_nlpsol_worhp.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_fast_newton.so +0 -0
- casadi/libcasadi_rootfinder_fast_newton.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_kinsol.so +0 -0
- casadi/libcasadi_rootfinder_kinsol.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_newton.so +0 -0
- casadi/libcasadi_rootfinder_newton.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_nlpsol.so +0 -0
- casadi/libcasadi_rootfinder_nlpsol.so.3.7 +0 -0
- casadi/libcasadi_sundials_common.so +0 -0
- casadi/libcasadi_sundials_common.so.3.7 +0 -0
- casadi/libcasadi_xmlfile_tinyxml.so +0 -0
- casadi/libcasadi_xmlfile_tinyxml.so.3.7 +0 -0
- casadi/libcoinmumps.so +0 -0
- casadi/libcoinmumps.so.3 +0 -0
- casadi/libcoinmumps.so.3.0.1 +0 -0
- casadi/libdaqpstat.a +0 -0
- casadi/libindirect.a +0 -0
- casadi/libipopt.so +0 -0
- casadi/libipopt.so.3 +0 -0
- casadi/libipopt.so.3.14.11 +0 -0
- casadi/liblinsys.a +0 -0
- casadi/libosqp.a +0 -0
- casadi/libqdldl.a +0 -0
- casadi/libsipopt.so +0 -0
- casadi/libsipopt.so.3 +0 -0
- casadi/libsipopt.so.3.14.11 +0 -0
- casadi/libsuperscs.a +0 -0
- casadi/libz.a +0 -0
- casadi/libz.so +0 -0
- casadi/libz.so.1 +0 -0
- casadi/libz.so.1.3.1 +0 -0
- casadi/libzip.a +0 -0
- casadi/pkgconfig/casadi.pc +1 -1
- casadi/pkgconfig/libzip.pc +14 -0
- casadi/tools/__init__.py +3 -1
- casadi/tools/graph/graph.py +1 -1
- casadi/tools/structure.py +7 -7
- {casadi-3.6.7.dist-info → casadi-3.7.1.dist-info}/METADATA +1 -1
- {casadi-3.6.7.dist-info → casadi-3.7.1.dist-info}/RECORD +203 -178
- casadi/include/tinyxml2.h +0 -2380
- casadi/lib/cmake/tinyxml2/tinyxml2-config.cmake +0 -57
- casadi/lib/cmake/tinyxml2/tinyxml2-static-targets-release.cmake +0 -19
- casadi/lib/libtinyxml2.a +0 -0
- casadi/lib/pkgconfig/tinyxml2.pc +0 -10
- casadi/tools/structure3.py +0 -1441
- {casadi-3.6.7.dist-info → casadi-3.7.1.dist-info}/WHEEL +0 -0
casadi/cbc
CHANGED
File without changes
|
casadi/clp
CHANGED
Binary file
|
casadi/cmake/casadi-config.cmake
CHANGED
@@ -4,5 +4,5 @@ get_filename_component(CASADI_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
4
4
|
include("${CASADI_CMAKE_DIR}/casadi-targets.cmake")
|
5
5
|
|
6
6
|
if(ON AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
7
|
-
target_compile_definitions(casadi INTERFACE _GLIBCXX_USE_CXX11_ABI=0)
|
7
|
+
target_compile_definitions(casadi::casadi INTERFACE _GLIBCXX_USE_CXX11_ABI=0)
|
8
8
|
endif()
|
@@ -5,15 +5,15 @@
|
|
5
5
|
# Commands may need to know the format version.
|
6
6
|
set(CMAKE_IMPORT_FILE_VERSION 1)
|
7
7
|
|
8
|
-
# Import target "casadi" for configuration "Release"
|
9
|
-
set_property(TARGET casadi APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
-
set_target_properties(casadi PROPERTIES
|
8
|
+
# Import target "casadi::casadi" for configuration "Release"
|
9
|
+
set_property(TARGET casadi::casadi APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
+
set_target_properties(casadi::casadi PROPERTIES
|
11
11
|
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/casadi/libcasadi.so.3.7"
|
12
12
|
IMPORTED_SONAME_RELEASE "libcasadi.so.3.7"
|
13
13
|
)
|
14
14
|
|
15
|
-
list(APPEND _IMPORT_CHECK_TARGETS casadi )
|
16
|
-
list(APPEND _IMPORT_CHECK_FILES_FOR_casadi "${_IMPORT_PREFIX}/casadi/libcasadi.so.3.7" )
|
15
|
+
list(APPEND _IMPORT_CHECK_TARGETS casadi::casadi )
|
16
|
+
list(APPEND _IMPORT_CHECK_FILES_FOR_casadi::casadi "${_IMPORT_PREFIX}/casadi/libcasadi.so.3.7" )
|
17
17
|
|
18
18
|
# Commands beyond this point should not need to know the version.
|
19
19
|
set(CMAKE_IMPORT_FILE_VERSION)
|
@@ -16,7 +16,7 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
16
16
|
set(_targetsDefined)
|
17
17
|
set(_targetsNotDefined)
|
18
18
|
set(_expectedTargets)
|
19
|
-
foreach(_expectedTarget casadi)
|
19
|
+
foreach(_expectedTarget casadi::casadi)
|
20
20
|
list(APPEND _expectedTargets ${_expectedTarget})
|
21
21
|
if(NOT TARGET ${_expectedTarget})
|
22
22
|
list(APPEND _targetsNotDefined ${_expectedTarget})
|
@@ -49,11 +49,11 @@ if(_IMPORT_PREFIX STREQUAL "/")
|
|
49
49
|
set(_IMPORT_PREFIX "")
|
50
50
|
endif()
|
51
51
|
|
52
|
-
# Create imported target casadi
|
53
|
-
add_library(casadi SHARED IMPORTED)
|
52
|
+
# Create imported target casadi::casadi
|
53
|
+
add_library(casadi::casadi SHARED IMPORTED)
|
54
54
|
|
55
|
-
set_target_properties(casadi PROPERTIES
|
56
|
-
INTERFACE_COMPILE_DEFINITIONS "CASADI_SNPRINTF=snprintf"
|
55
|
+
set_target_properties(casadi::casadi PROPERTIES
|
56
|
+
INTERFACE_COMPILE_DEFINITIONS "CASADI_SNPRINTF=snprintf;CASADI_WITH_THREAD"
|
57
57
|
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/casadi/include"
|
58
58
|
INTERFACE_LINK_LIBRARIES "dl"
|
59
59
|
)
|
casadi/{lib/cmake/tinyxml2/tinyxml2-config-version.cmake → cmake/libzip/libzip-config-version.cmake}
RENAMED
@@ -4,31 +4,17 @@
|
|
4
4
|
#
|
5
5
|
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
6
6
|
# the requested version string are exactly the same and it sets
|
7
|
-
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version
|
8
|
-
# but only if the requested major version is the same as the current one.
|
7
|
+
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
|
9
8
|
# The variable CVF_VERSION must be set before calling configure_file().
|
10
9
|
|
11
|
-
|
12
|
-
set(PACKAGE_VERSION "9.0.0")
|
10
|
+
set(PACKAGE_VERSION "1.11.3")
|
13
11
|
|
14
12
|
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
15
13
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
16
14
|
else()
|
17
|
-
|
18
|
-
if("9.0.0" MATCHES "^([0-9]+)\\.")
|
19
|
-
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
20
|
-
else()
|
21
|
-
set(CVF_VERSION_MAJOR "9.0.0")
|
22
|
-
endif()
|
23
|
-
|
24
|
-
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
25
|
-
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
26
|
-
else()
|
27
|
-
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
28
|
-
endif()
|
29
|
-
|
15
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
30
16
|
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
31
|
-
|
17
|
+
set(PACKAGE_VERSION_EXACT TRUE)
|
32
18
|
endif()
|
33
19
|
endif()
|
34
20
|
|
@@ -0,0 +1,69 @@
|
|
1
|
+
|
2
|
+
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
3
|
+
####### Any changes to this file will be overwritten by the next CMake run ####
|
4
|
+
####### The input file was libzip-config.cmake.in ########
|
5
|
+
|
6
|
+
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
|
7
|
+
|
8
|
+
macro(set_and_check _var _file)
|
9
|
+
set(${_var} "${_file}")
|
10
|
+
if(NOT EXISTS "${_file}")
|
11
|
+
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
|
12
|
+
endif()
|
13
|
+
endmacro()
|
14
|
+
|
15
|
+
macro(check_required_components _NAME)
|
16
|
+
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
17
|
+
if(NOT ${_NAME}_${comp}_FOUND)
|
18
|
+
if(${_NAME}_FIND_REQUIRED_${comp})
|
19
|
+
set(${_NAME}_FOUND FALSE)
|
20
|
+
endif()
|
21
|
+
endif()
|
22
|
+
endforeach()
|
23
|
+
endmacro()
|
24
|
+
|
25
|
+
####################################################################################
|
26
|
+
|
27
|
+
# We need to supply transitive dependencies if this config is for a static library
|
28
|
+
set(IS_SHARED OFF)
|
29
|
+
if (NOT IS_SHARED)
|
30
|
+
include(CMakeFindDependencyMacro)
|
31
|
+
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/modules")
|
32
|
+
|
33
|
+
set(ENABLE_BZIP2 )
|
34
|
+
set(ENABLE_LZMA )
|
35
|
+
set(ENABLE_ZSTD )
|
36
|
+
set(ENABLE_GNUTLS )
|
37
|
+
set(ENABLE_MBEDTLS )
|
38
|
+
set(ENABLE_OPENSSL )
|
39
|
+
|
40
|
+
find_dependency(ZLIB 1.1.2)
|
41
|
+
if(ENABLE_BZIP2)
|
42
|
+
find_dependency(BZip2)
|
43
|
+
endif()
|
44
|
+
|
45
|
+
if(ENABLE_LZMA)
|
46
|
+
find_dependency(LibLZMA 5.2)
|
47
|
+
endif()
|
48
|
+
|
49
|
+
if(ENABLE_ZSTD)
|
50
|
+
find_dependency(zstd 1.3.6)
|
51
|
+
endif()
|
52
|
+
|
53
|
+
if(ENABLE_GNUTLS)
|
54
|
+
find_dependency(Nettle 3.0)
|
55
|
+
find_dependency(GnuTLS)
|
56
|
+
endif()
|
57
|
+
if(ENABLE_MBEDTLS)
|
58
|
+
find_dependency(MbedTLS 1.0)
|
59
|
+
endif()
|
60
|
+
if(ENABLE_OPENSSL)
|
61
|
+
find_dependency(OpenSSL)
|
62
|
+
endif()
|
63
|
+
endif()
|
64
|
+
|
65
|
+
# Provide all our library targets to users.
|
66
|
+
include("${CMAKE_CURRENT_LIST_DIR}/libzip-targets.cmake")
|
67
|
+
|
68
|
+
check_required_components(libzip)
|
69
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#----------------------------------------------------------------
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
3
|
+
#----------------------------------------------------------------
|
4
|
+
|
5
|
+
# Commands may need to know the format version.
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
7
|
+
|
8
|
+
# Import target "libzip::zip" for configuration "Release"
|
9
|
+
set_property(TARGET libzip::zip APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
+
set_target_properties(libzip::zip PROPERTIES
|
11
|
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C"
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libzip.a"
|
13
|
+
)
|
14
|
+
|
15
|
+
list(APPEND _IMPORT_CHECK_TARGETS libzip::zip )
|
16
|
+
list(APPEND _IMPORT_CHECK_FILES_FOR_libzip::zip "${_IMPORT_PREFIX}/lib/libzip.a" )
|
17
|
+
|
18
|
+
# Commands beyond this point should not need to know the version.
|
19
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
casadi/{lib/cmake/tinyxml2/tinyxml2-static-targets.cmake → cmake/libzip/libzip-targets.cmake}
RENAMED
@@ -16,7 +16,7 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
16
16
|
set(_targetsDefined)
|
17
17
|
set(_targetsNotDefined)
|
18
18
|
set(_expectedTargets)
|
19
|
-
foreach(_expectedTarget
|
19
|
+
foreach(_expectedTarget libzip::zip)
|
20
20
|
list(APPEND _expectedTargets ${_expectedTarget})
|
21
21
|
if(NOT TARGET ${_expectedTarget})
|
22
22
|
list(APPEND _targetsNotDefined ${_expectedTarget})
|
@@ -50,17 +50,21 @@ if(_IMPORT_PREFIX STREQUAL "/")
|
|
50
50
|
set(_IMPORT_PREFIX "")
|
51
51
|
endif()
|
52
52
|
|
53
|
-
# Create imported target
|
54
|
-
add_library(
|
53
|
+
# Create imported target libzip::zip
|
54
|
+
add_library(libzip::zip STATIC IMPORTED)
|
55
55
|
|
56
|
-
set_target_properties(
|
57
|
-
|
58
|
-
|
56
|
+
set_target_properties(libzip::zip PROPERTIES
|
57
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include"
|
58
|
+
INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:ZLIB::ZLIB>"
|
59
59
|
)
|
60
60
|
|
61
|
+
if(CMAKE_VERSION VERSION_LESS 2.8.12)
|
62
|
+
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
|
63
|
+
endif()
|
64
|
+
|
61
65
|
# Load information for each installed configuration.
|
62
66
|
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
63
|
-
file(GLOB CONFIG_FILES "${_DIR}/
|
67
|
+
file(GLOB CONFIG_FILES "${_DIR}/libzip-targets-*.cmake")
|
64
68
|
foreach(f ${CONFIG_FILES})
|
65
69
|
include(${f})
|
66
70
|
endforeach()
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# Copyright (C) 2020 Dieter Baron and Thomas Klausner
|
2
|
+
#
|
3
|
+
# The authors can be contacted at <info@libzip.org>
|
4
|
+
#
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
6
|
+
# modification, are permitted provided that the following conditions
|
7
|
+
# are met:
|
8
|
+
#
|
9
|
+
# 1. Redistributions of source code must retain the above copyright
|
10
|
+
# notice, this list of conditions and the following disclaimer.
|
11
|
+
#
|
12
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
13
|
+
# notice, this list of conditions and the following disclaimer in
|
14
|
+
# the documentation and/or other materials provided with the
|
15
|
+
# distribution.
|
16
|
+
#
|
17
|
+
# 3. The names of the authors may not be used to endorse or promote
|
18
|
+
# products derived from this software without specific prior
|
19
|
+
# written permission.
|
20
|
+
#
|
21
|
+
# THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
|
22
|
+
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
23
|
+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
24
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
|
25
|
+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
26
|
+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
27
|
+
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
28
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
29
|
+
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
30
|
+
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
31
|
+
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
32
|
+
|
33
|
+
#[=======================================================================[.rst:
|
34
|
+
FindMbedTLS
|
35
|
+
-------
|
36
|
+
|
37
|
+
Finds the Mbed TLS library.
|
38
|
+
|
39
|
+
Imported Targets
|
40
|
+
^^^^^^^^^^^^^^^^
|
41
|
+
|
42
|
+
This module provides the following imported targets, if found:
|
43
|
+
|
44
|
+
``MbedTLS::MbedTLS``
|
45
|
+
The Mbed TLS library
|
46
|
+
|
47
|
+
Result Variables
|
48
|
+
^^^^^^^^^^^^^^^^
|
49
|
+
|
50
|
+
This will define the following variables:
|
51
|
+
|
52
|
+
``MbedTLS_FOUND``
|
53
|
+
True if the system has the Mbed TLS library.
|
54
|
+
``MbedTLS_VERSION``
|
55
|
+
The version of the Mbed TLS library which was found.
|
56
|
+
``MbedTLS_INCLUDE_DIRS``
|
57
|
+
Include directories needed to use Mbed TLS.
|
58
|
+
``MbedTLS_LIBRARIES``
|
59
|
+
Libraries needed to link to Mbed TLS.
|
60
|
+
|
61
|
+
Cache Variables
|
62
|
+
^^^^^^^^^^^^^^^
|
63
|
+
|
64
|
+
The following cache variables may also be set:
|
65
|
+
|
66
|
+
``MbedTLS_INCLUDE_DIR``
|
67
|
+
The directory containing ``mbedtls/aes.h``.
|
68
|
+
``MbedTLS_LIBRARY``
|
69
|
+
The path to the Mbed TLS library.
|
70
|
+
|
71
|
+
#]=======================================================================]
|
72
|
+
|
73
|
+
# I'm not aware of a pkg-config file for mbedtls as of 2020/07/08.
|
74
|
+
#find_package(PkgConfig)
|
75
|
+
#pkg_check_modules(PC_MbedTLS QUIET mbedtls)
|
76
|
+
|
77
|
+
find_path(MbedTLS_INCLUDE_DIR
|
78
|
+
NAMES mbedtls/aes.h
|
79
|
+
# PATHS ${PC_MbedTLS_INCLUDE_DIRS}
|
80
|
+
)
|
81
|
+
find_library(MbedTLS_LIBRARY
|
82
|
+
NAMES mbedcrypto
|
83
|
+
# PATHS ${PC_MbedTLS_LIBRARY_DIRS}
|
84
|
+
)
|
85
|
+
|
86
|
+
# Extract version information from the header file
|
87
|
+
if(MbedTLS_INCLUDE_DIR)
|
88
|
+
# for major version 3
|
89
|
+
if(EXISTS ${MbedTLS_INCLUDE_DIR}/mbedtls/build_info.h)
|
90
|
+
file(STRINGS ${MbedTLS_INCLUDE_DIR}/mbedtls/build_info.h _ver_line
|
91
|
+
REGEX "^#define MBEDTLS_VERSION_STRING *\"[0-9]+\\.[0-9]+\\.[0-9]+\""
|
92
|
+
LIMIT_COUNT 1)
|
93
|
+
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+"
|
94
|
+
MbedTLS_VERSION "${_ver_line}")
|
95
|
+
unset(_ver_line)
|
96
|
+
# for major version 2
|
97
|
+
elseif(EXISTS ${MbedTLS_INCLUDE_DIR}/mbedtls/version.h)
|
98
|
+
file(STRINGS ${MbedTLS_INCLUDE_DIR}/mbedtls/version.h _ver_line
|
99
|
+
REGEX "^#define MBEDTLS_VERSION_STRING *\"[0-9]+\\.[0-9]+\\.[0-9]+\""
|
100
|
+
LIMIT_COUNT 1)
|
101
|
+
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+"
|
102
|
+
MbedTLS_VERSION "${_ver_line}")
|
103
|
+
unset(_ver_line)
|
104
|
+
else()
|
105
|
+
if(PC_MbedTLS_VERSION)
|
106
|
+
set(MbedTLS_VERSION ${PC_MbedTLS_VERSION})
|
107
|
+
else()
|
108
|
+
# version unknown
|
109
|
+
set(MbedTLS_VERSION "0.0")
|
110
|
+
endif()
|
111
|
+
endif()
|
112
|
+
endif()
|
113
|
+
|
114
|
+
include(FindPackageHandleStandardArgs)
|
115
|
+
find_package_handle_standard_args(MbedTLS
|
116
|
+
FOUND_VAR MbedTLS_FOUND
|
117
|
+
REQUIRED_VARS
|
118
|
+
MbedTLS_LIBRARY
|
119
|
+
MbedTLS_INCLUDE_DIR
|
120
|
+
VERSION_VAR MbedTLS_VERSION
|
121
|
+
)
|
122
|
+
|
123
|
+
if(MbedTLS_FOUND)
|
124
|
+
set(MbedTLS_LIBRARIES ${MbedTLS_LIBRARY})
|
125
|
+
set(MbedTLS_INCLUDE_DIRS ${MbedTLS_INCLUDE_DIR})
|
126
|
+
# set(MbedTLS_DEFINITIONS ${PC_MbedTLS_CFLAGS_OTHER})
|
127
|
+
endif()
|
128
|
+
|
129
|
+
if(MbedTLS_FOUND AND NOT TARGET MbedTLS::MbedTLS)
|
130
|
+
add_library(MbedTLS::MbedTLS UNKNOWN IMPORTED)
|
131
|
+
set_target_properties(MbedTLS::MbedTLS PROPERTIES
|
132
|
+
IMPORTED_LOCATION "${MbedTLS_LIBRARY}"
|
133
|
+
# INTERFACE_COMPILE_OPTIONS "${PC_MbedTLS_CFLAGS_OTHER}"
|
134
|
+
INTERFACE_INCLUDE_DIRECTORIES "${MbedTLS_INCLUDE_DIR}"
|
135
|
+
)
|
136
|
+
endif()
|
137
|
+
|
138
|
+
mark_as_advanced(
|
139
|
+
MbedTLS_INCLUDE_DIR
|
140
|
+
MbedTLS_LIBRARY
|
141
|
+
)
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# Copyright (C) 2020 Dieter Baron and Thomas Klausner
|
2
|
+
#
|
3
|
+
# The authors can be contacted at <info@libzip.org>
|
4
|
+
#
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
6
|
+
# modification, are permitted provided that the following conditions
|
7
|
+
# are met:
|
8
|
+
#
|
9
|
+
# 1. Redistributions of source code must retain the above copyright
|
10
|
+
# notice, this list of conditions and the following disclaimer.
|
11
|
+
#
|
12
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
13
|
+
# notice, this list of conditions and the following disclaimer in
|
14
|
+
# the documentation and/or other materials provided with the
|
15
|
+
# distribution.
|
16
|
+
#
|
17
|
+
# 3. The names of the authors may not be used to endorse or promote
|
18
|
+
# products derived from this software without specific prior
|
19
|
+
# written permission.
|
20
|
+
#
|
21
|
+
# THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
|
22
|
+
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
23
|
+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
24
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
|
25
|
+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
26
|
+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
27
|
+
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
28
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
29
|
+
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
30
|
+
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
31
|
+
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
32
|
+
|
33
|
+
#[=======================================================================[.rst:
|
34
|
+
FindNettle
|
35
|
+
-------
|
36
|
+
|
37
|
+
Finds the Nettle library.
|
38
|
+
|
39
|
+
Imported Targets
|
40
|
+
^^^^^^^^^^^^^^^^
|
41
|
+
|
42
|
+
This module provides the following imported targets, if found:
|
43
|
+
|
44
|
+
``Nettle::Nettle``
|
45
|
+
The Nettle library
|
46
|
+
|
47
|
+
Result Variables
|
48
|
+
^^^^^^^^^^^^^^^^
|
49
|
+
|
50
|
+
This will define the following variables:
|
51
|
+
|
52
|
+
``Nettle_FOUND``
|
53
|
+
True if the system has the Nettle library.
|
54
|
+
``Nettle_VERSION``
|
55
|
+
The version of the Nettle library which was found.
|
56
|
+
``Nettle_INCLUDE_DIRS``
|
57
|
+
Include directories needed to use Nettle.
|
58
|
+
``Nettle_LIBRARIES``
|
59
|
+
Libraries needed to link to Nettle.
|
60
|
+
|
61
|
+
Cache Variables
|
62
|
+
^^^^^^^^^^^^^^^
|
63
|
+
|
64
|
+
The following cache variables may also be set:
|
65
|
+
|
66
|
+
``Nettle_INCLUDE_DIR``
|
67
|
+
The directory containing ``nettle/aes.h``.
|
68
|
+
``Nettle_LIBRARY``
|
69
|
+
The path to the Nettle library.
|
70
|
+
|
71
|
+
#]=======================================================================]
|
72
|
+
|
73
|
+
find_package(PkgConfig)
|
74
|
+
pkg_check_modules(PC_Nettle QUIET nettle)
|
75
|
+
|
76
|
+
find_path(Nettle_INCLUDE_DIR
|
77
|
+
NAMES nettle/aes.h nettle/md5.h nettle/pbkdf2.h nettle/ripemd160.h nettle/sha.h
|
78
|
+
PATHS ${PC_Nettle_INCLUDE_DIRS}
|
79
|
+
)
|
80
|
+
find_library(Nettle_LIBRARY
|
81
|
+
NAMES nettle
|
82
|
+
PATHS ${PC_Nettle_LIBRARY_DIRS}
|
83
|
+
)
|
84
|
+
|
85
|
+
# Extract version information from the header file
|
86
|
+
if(Nettle_INCLUDE_DIR)
|
87
|
+
# This file only exists in nettle>=3.0
|
88
|
+
if(EXISTS ${Nettle_INCLUDE_DIR}/nettle/version.h)
|
89
|
+
file(STRINGS ${Nettle_INCLUDE_DIR}/nettle/version.h _ver_major_line
|
90
|
+
REGEX "^#define NETTLE_VERSION_MAJOR *[0-9]+"
|
91
|
+
LIMIT_COUNT 1)
|
92
|
+
string(REGEX MATCH "[0-9]+"
|
93
|
+
Nettle_MAJOR_VERSION "${_ver_major_line}")
|
94
|
+
file(STRINGS ${Nettle_INCLUDE_DIR}/nettle/version.h _ver_minor_line
|
95
|
+
REGEX "^#define NETTLE_VERSION_MINOR *[0-9]+"
|
96
|
+
LIMIT_COUNT 1)
|
97
|
+
string(REGEX MATCH "[0-9]+"
|
98
|
+
Nettle_MINOR_VERSION "${_ver_minor_line}")
|
99
|
+
set(Nettle_VERSION "${Nettle_MAJOR_VERSION}.${Nettle_MINOR_VERSION}")
|
100
|
+
unset(_ver_major_line)
|
101
|
+
unset(_ver_minor_line)
|
102
|
+
else()
|
103
|
+
if(PC_Nettle_VERSION)
|
104
|
+
set(Nettle_VERSION ${PC_Nettle_VERSION})
|
105
|
+
else()
|
106
|
+
set(Nettle_VERSION "1.0")
|
107
|
+
endif()
|
108
|
+
endif()
|
109
|
+
endif()
|
110
|
+
|
111
|
+
include(FindPackageHandleStandardArgs)
|
112
|
+
find_package_handle_standard_args(Nettle
|
113
|
+
FOUND_VAR Nettle_FOUND
|
114
|
+
REQUIRED_VARS
|
115
|
+
Nettle_LIBRARY
|
116
|
+
Nettle_INCLUDE_DIR
|
117
|
+
VERSION_VAR Nettle_VERSION
|
118
|
+
)
|
119
|
+
|
120
|
+
if(Nettle_FOUND)
|
121
|
+
set(Nettle_LIBRARIES ${Nettle_LIBRARY})
|
122
|
+
set(Nettle_INCLUDE_DIRS ${Nettle_INCLUDE_DIR})
|
123
|
+
set(Nettle_DEFINITIONS ${PC_Nettle_CFLAGS_OTHER})
|
124
|
+
endif()
|
125
|
+
|
126
|
+
if(Nettle_FOUND AND NOT TARGET Nettle::Nettle)
|
127
|
+
add_library(Nettle::Nettle UNKNOWN IMPORTED)
|
128
|
+
set_target_properties(Nettle::Nettle PROPERTIES
|
129
|
+
IMPORTED_LOCATION "${Nettle_LIBRARY}"
|
130
|
+
INTERFACE_COMPILE_OPTIONS "${PC_Nettle_CFLAGS_OTHER}"
|
131
|
+
INTERFACE_INCLUDE_DIRECTORIES "${Nettle_INCLUDE_DIR}"
|
132
|
+
)
|
133
|
+
endif()
|
134
|
+
|
135
|
+
mark_as_advanced(
|
136
|
+
Nettle_INCLUDE_DIR
|
137
|
+
Nettle_LIBRARY
|
138
|
+
)
|
139
|
+
|
140
|
+
# compatibility variables
|
141
|
+
set(Nettle_VERSION_STRING ${Nettle_VERSION})
|