Spaces:
Sleeping
Sleeping
34d373334cd68c47af1b2bcb01a164603041aa1a401f25767731c4084521ce67
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanopb/fix-python.patch +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanopb/portfile.cmake +57 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanopb/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanoprintf/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanoprintf/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanorange/portfile.cmake +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanorange/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanort/portfile.cmake +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanort/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanovg/CMakeLists.txt +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanovg/nanovgConfig.cmake +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanovg/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanovg/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nativefiledialog/CMakeLists.txt +69 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nativefiledialog/portfile.cmake +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nativefiledialog/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nayuki-qr-code-generator/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nayuki-qr-code-generator/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/FindNCCL.cmake +97 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/portfile.cmake +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/vcpkg-cmake-wrapper.cmake +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ncurses/portfile.cmake +69 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ncurses/usage +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ncurses/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/neargye-semver/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/neargye-semver/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/portfile.cmake +90 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/quicklib-depheaders.patch +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/sha_manifest.cmake +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/usage +2 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/vcpkg.json +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/neon2sse/portfile.cmake +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/neon2sse/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-dependency-libmath.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-dependency-libzip.patch +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-dependency-mpi.patch +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-dependency-zlib.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-linkage-error.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-manpage-msys.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-pkgconfig.patch +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/no-install-deps.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/portfile.cmake +95 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/use_targets.patch +137 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/vcpkg.json +105 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/export-cmake-targets.patch +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/fix-dependecy-hdf5.patch +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/netCDFCxxConfig.cmake.in +29 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanopb/fix-python.patch
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index d9c5e5e..4e94bb7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -41,7 +41,6 @@ endif()
|
6 |
+
if(nanopb_BUILD_GENERATOR)
|
7 |
+
set(generator_protos nanopb)
|
8 |
+
|
9 |
+
- find_package(Python REQUIRED)
|
10 |
+
execute_process(
|
11 |
+
COMMAND ${Python_EXECUTABLE} -c
|
12 |
+
"from distutils import sysconfig; print(sysconfig.get_python_lib(prefix=''))"
|
13 |
+
@@ -64,10 +63,10 @@ if(nanopb_BUILD_GENERATOR)
|
14 |
+
DESTINATION ${PYTHON_INSTDIR}/proto/
|
15 |
+
)
|
16 |
+
endforeach()
|
17 |
+
+ install( FILES generator/proto/_utils.py
|
18 |
+
+ DESTINATION ${PYTHON_INSTDIR}/proto/ )
|
19 |
+
endif()
|
20 |
+
|
21 |
+
-install( FILES generator/proto/_utils.py
|
22 |
+
- DESTINATION ${PYTHON_INSTDIR}/proto/ )
|
23 |
+
|
24 |
+
if( WIN32 )
|
25 |
+
install(
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanopb/portfile.cmake
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO nanopb/nanopb
|
6 |
+
REF 0.4.5
|
7 |
+
SHA512 2f24308440bd961a94449e253627fbe38f6c5217cd70c57e9b3ab702da3c2df03b087ccdd62518940acf6b480a1dbb440ca5681f1766a17b199010d3df7b17a1
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-python.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" nanopb_BUILD_STATIC_LIBS)
|
14 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" nanopb_STATIC_LINKING)
|
15 |
+
|
16 |
+
|
17 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
18 |
+
FEATURES
|
19 |
+
generator nanopb_BUILD_GENERATOR
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_find_acquire_program(PYTHON3)
|
23 |
+
|
24 |
+
vcpkg_configure_cmake(
|
25 |
+
SOURCE_PATH ${SOURCE_PATH}
|
26 |
+
PREFER_NINJA
|
27 |
+
OPTIONS
|
28 |
+
-DPython_EXECUTABLE=${PYTHON3}
|
29 |
+
-Dnanopb_BUILD_RUNTIME=ON
|
30 |
+
-DBUILD_STATIC_LIBS=${nanopb_BUILD_STATIC_LIBS}
|
31 |
+
-Dnanopb_MSVC_STATIC_RUNTIME=${nanopb_STATIC_LINKING}
|
32 |
+
-Dnanopb_PROTOC_PATH=${CURRENT_HOST_INSTALLED_DIR}/tools/protobuf/protoc${VCPKG_HOST_EXECUTABLE_SUFFIX}
|
33 |
+
${FEATURE_OPTIONS}
|
34 |
+
)
|
35 |
+
vcpkg_install_cmake()
|
36 |
+
|
37 |
+
vcpkg_copy_pdbs()
|
38 |
+
|
39 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
40 |
+
|
41 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
42 |
+
|
43 |
+
if(nanopb_BUILD_GENERATOR)
|
44 |
+
file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/nanopb_generator.py" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
45 |
+
if(WIN32)
|
46 |
+
file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/protoc-gen-nanopb.bat" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
47 |
+
file(INSTALL "${CURRENT_PACKAGES_DIR}/Lib/site-packages/" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/site-packages")
|
48 |
+
else()
|
49 |
+
file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/protoc-gen-nanopb" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
50 |
+
endif()
|
51 |
+
endif()
|
52 |
+
|
53 |
+
if(nanopb_BUILD_STATIC_LIBS)
|
54 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
55 |
+
endif()
|
56 |
+
# Handle copyright
|
57 |
+
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanopb/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanopb",
|
3 |
+
"version-semver": "0.4.5",
|
4 |
+
"description": "A small code-size Protocol Buffers implementation in ANSI C.",
|
5 |
+
"homepage": "https://jpa.kapsi.fi/nanopb/",
|
6 |
+
"features": {
|
7 |
+
"generator": {
|
8 |
+
"description": "build the generator",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "protobuf",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
16 |
+
}
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanoprintf/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO charlesnicholson/nanoprintf
|
5 |
+
REF b210b50a2b8608e2f0226b47a8f82c3476177a4f
|
6 |
+
SHA512 8340bf3785a8609568188e28e3fb905007d6da052f860df02fe0b8b2fdef3ca1ac87b91f7ac203fbd7235bcd50c8a63f33b2fca2854cad1351899c59cd8d7646
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
file(COPY ${SOURCE_PATH}/nanoprintf.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
11 |
+
|
12 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanoprintf/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanoprintf",
|
3 |
+
"version-string": "2020-05-27",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A tiny embeddable printf replacement written in C99",
|
6 |
+
"homepage": "https://github.com/charlesnicholson/nanoprintf"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanorange/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO tcbrindle/NanoRange
|
4 |
+
REF bf32251d65673fe170d602777c087786c529ead8
|
5 |
+
SHA512 74dc8497fd20f56de39e54a104007840450466648f7b216f83265294e24582b486392ad6bf0cc85ca9877655640f08f833bc5d82ebee991b8a57d4fa44f0934f
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}" FILES_MATCHING PATTERN "*.hpp")
|
10 |
+
|
11 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE_1_0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanorange/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanorange",
|
3 |
+
"version-date": "2020-07-06",
|
4 |
+
"description": "NanoRange is a C++14 implementation of the C++20 Ranges proposals.",
|
5 |
+
"homepage": "https://github.com/tcbrindle/NanoRange",
|
6 |
+
"license": "BSL-1.0"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanort/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO lighttransport/nanort
|
4 |
+
REF c85fe7a10be5baf8242c81288718c244f25d0183
|
5 |
+
SHA512 0917ffdc51db9d5f936fc79d5b3d1886c5163470e650a2613200417a9e7a344b75c76c115f64160877d6a3480f7eda7884f3097927eb371267cc6d3c30afed37
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY ${SOURCE_PATH}/nanort.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
10 |
+
|
11 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanort/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanort",
|
3 |
+
"version-string": "2019-08-20",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Single header only modern ray tracing kernel",
|
6 |
+
"homepage": "https://github.com/lighttransport/nanort"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanovg/CMakeLists.txt
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.11)
|
2 |
+
project(nanovg C)
|
3 |
+
|
4 |
+
find_path(STB_INCLUDES stb_image.h include)
|
5 |
+
|
6 |
+
set(NANOVG_SOURCES src/nanovg.c)
|
7 |
+
set(NANOVG_HEADERS src/nanovg.h src/nanovg_gl.h src/nanovg_gl_utils.h)
|
8 |
+
add_library(nanovg STATIC ${NANOVG_SOURCES} ${NANOVG_HEADERS})
|
9 |
+
set_target_properties(nanovg PROPERTIES PUBLIC_HEADER "${NANOVG_HEADERS}")
|
10 |
+
target_include_directories(nanovg PRIVATE ${STB_INCLUDES})
|
11 |
+
|
12 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
13 |
+
target_compile_definitions(nanovg PRIVATE DEBUG)
|
14 |
+
else()
|
15 |
+
target_compile_definitions(nanovg PRIVATE NDEBUG)
|
16 |
+
endif()
|
17 |
+
|
18 |
+
install(TARGETS nanovg
|
19 |
+
EXPORT nanovgTargets
|
20 |
+
RUNTIME DESTINATION bin
|
21 |
+
ARCHIVE DESTINATION lib
|
22 |
+
LIBRARY DESTINATION lib
|
23 |
+
PUBLIC_HEADER DESTINATION include)
|
24 |
+
|
25 |
+
install(EXPORT nanovgTargets
|
26 |
+
FILE nanovgTargets.cmake
|
27 |
+
NAMESPACE nanovg::
|
28 |
+
DESTINATION share/nanovg)
|
29 |
+
|
30 |
+
install(FILES
|
31 |
+
${CMAKE_CURRENT_SOURCE_DIR}/nanovgConfig.cmake
|
32 |
+
DESTINATION share/nanovg)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanovg/nanovgConfig.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
include(${CMAKE_CURRENT_LIST_DIR}/nanovgTargets.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanovg/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO memononen/nanovg
|
4 |
+
REF 1f9c8864fc556a1be4d4bf1d6bfe20cde25734b4
|
5 |
+
SHA512 99a44f01114ee653a966d4695596886240752f5a06d540c408b5aeaebdcc5360fc2043276515695580d048649a20dc50409107f89c4ce506d2ccb83a0635d29f
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
10 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/nanovgConfig.cmake DESTINATION ${SOURCE_PATH})
|
11 |
+
|
12 |
+
file(GLOB STB_SRCS ${SOURCE_PATH}/src/stb_*)
|
13 |
+
if(STB_SRCS)
|
14 |
+
file(REMOVE_RECURSE ${STB_SRCS})
|
15 |
+
endif()
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
|
26 |
+
${CURRENT_PACKAGES_DIR}/debug/share)
|
27 |
+
|
28 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanovg/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanovg",
|
3 |
+
"version-date": "2019-08-30",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "NanoVG is small antialiased vector graphics rendering library for OpenGL.",
|
6 |
+
"homepage": "https://github.com/memononen/nanovg",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"stb"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nativefiledialog/CMakeLists.txt
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
project(nfd LANGUAGES C)
|
4 |
+
|
5 |
+
include(GNUInstallDirs)
|
6 |
+
|
7 |
+
option(NFD_GTK_BACKEND "Using GTK backend" ON)
|
8 |
+
|
9 |
+
file(GLOB nfd_sources
|
10 |
+
"${PROJECT_SOURCE_DIR}/src/*.h"
|
11 |
+
"${PROJECT_SOURCE_DIR}/src/include/*.h"
|
12 |
+
"${PROJECT_SOURCE_DIR}/src/nfd_common.c"
|
13 |
+
)
|
14 |
+
|
15 |
+
if (WIN32)
|
16 |
+
enable_language(CXX)
|
17 |
+
list(APPEND nfd_sources "${PROJECT_SOURCE_DIR}/src/nfd_win.cpp")
|
18 |
+
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
19 |
+
if (NFD_GTK_BACKEND)
|
20 |
+
find_package(GTK3 QUIET)
|
21 |
+
if (GTK3_FOUND)
|
22 |
+
list(APPEND nfd_sources "${PROJECT_SOURCE_DIR}/src/nfd_gtk.c")
|
23 |
+
else ()
|
24 |
+
list(APPEND nfd_sources "${PROJECT_SOURCE_DIR}/src/nfd_zenity.c")
|
25 |
+
endif ()
|
26 |
+
else ()
|
27 |
+
list(APPEND nfd_sources "${PROJECT_SOURCE_DIR}/src/nfd_zenity.c")
|
28 |
+
endif ()
|
29 |
+
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
30 |
+
list(APPEND nfd_sources "${PROJECT_SOURCE_DIR}/src/nfd_cocoa.m")
|
31 |
+
endif ()
|
32 |
+
|
33 |
+
add_library(nfd ${nfd_sources})
|
34 |
+
|
35 |
+
set_target_properties(
|
36 |
+
nfd
|
37 |
+
PROPERTIES
|
38 |
+
DEBUG_POSTFIX "_d"
|
39 |
+
PUBLIC_HEADER ${CMAKE_CURRENT_LIST_DIR}/src/include/nfd.h
|
40 |
+
)
|
41 |
+
|
42 |
+
target_compile_definitions(
|
43 |
+
nfd
|
44 |
+
PRIVATE
|
45 |
+
$<$<C_COMPILER_ID:MSVC>:_CRT_SECURE_NO_WARNINGS>
|
46 |
+
)
|
47 |
+
|
48 |
+
target_include_directories(nfd PRIVATE
|
49 |
+
$<BUILD_INTERFACE:
|
50 |
+
${CMAKE_CURRENT_LIST_DIR}/src
|
51 |
+
${CMAKE_CURRENT_LIST_DIR}/src/include
|
52 |
+
>)
|
53 |
+
|
54 |
+
target_include_directories(nfd INTERFACE
|
55 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
56 |
+
|
57 |
+
if (GTK3_FOUND)
|
58 |
+
target_include_directories(nfd PUBLIC ${GTK3_INCLUDE_DIRS})
|
59 |
+
target_link_libraries(nfd PUBLIC ${GTK3_LIBRARIES})
|
60 |
+
endif ()
|
61 |
+
|
62 |
+
install(TARGETS nfd EXPORT unofficial-nativefiledialog-config)
|
63 |
+
|
64 |
+
install(
|
65 |
+
EXPORT unofficial-nativefiledialog-config
|
66 |
+
NAMESPACE unofficial::nativefiledialog::
|
67 |
+
DESTINATION share/unofficial-nativefiledialog
|
68 |
+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
69 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nativefiledialog/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2 |
+
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO mlabbe/nativefiledialog
|
10 |
+
REF 67345b80ebb429ecc2aeda94c478b3bcc5f7888e
|
11 |
+
SHA512 55edb3730b718b18d4fee7ec9bb479794d0e193ff13f05f26cbcf9ff44c43adb93e228ed7fd708e30c08476366f098bf69139031a84f5e4d6a85eba096fe4654
|
12 |
+
HEAD_REF master
|
13 |
+
)
|
14 |
+
|
15 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
16 |
+
|
17 |
+
vcpkg_check_features(
|
18 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
19 |
+
INVERTED_FEATURES "zenity" NFD_GTK_BACKEND
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_configure(
|
23 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
24 |
+
OPTIONS
|
25 |
+
${FEATURE_OPTIONS}
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
|
30 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})
|
31 |
+
vcpkg_fixup_pkgconfig()
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
34 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
35 |
+
|
36 |
+
# Handle copyright
|
37 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nativefiledialog/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nativefiledialog",
|
3 |
+
"version-date": "2022-01-20",
|
4 |
+
"description": "A tiny, neat C library that portably invokes native file open and save dialogs",
|
5 |
+
"homepage": "https://github.com/mlabbe/nativefiledialog",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"zenity": {
|
19 |
+
"description": "Using Zenity backend on Linux"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
project(nayuki-qr-code-generator LANGUAGES CXX)
|
4 |
+
|
5 |
+
include(GNUInstallDirs)
|
6 |
+
|
7 |
+
add_library(nayuki-qr-code-generator qrcodegen.cpp)
|
8 |
+
target_compile_features(nayuki-qr-code-generator PUBLIC cxx_std_11)
|
9 |
+
target_include_directories(
|
10 |
+
nayuki-qr-code-generator
|
11 |
+
PUBLIC
|
12 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
13 |
+
)
|
14 |
+
|
15 |
+
install(FILES qrcodegen.hpp DESTINATION include)
|
16 |
+
|
17 |
+
install(TARGETS nayuki-qr-code-generator EXPORT unofficial-nayuki-qr-code-generator-config)
|
18 |
+
|
19 |
+
install(
|
20 |
+
EXPORT unofficial-nayuki-qr-code-generator-config
|
21 |
+
NAMESPACE unofficial::nayuki-qr-code-generator::
|
22 |
+
DESTINATION share/nayuki-qr-code-generator
|
23 |
+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
24 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nayuki-qr-code-generator/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO nayuki/QR-Code-generator
|
6 |
+
REF v1.7.0
|
7 |
+
SHA512 34efa40c382b6e7d060a764936c4e2faa4fbbecd5ea4730492a2cb1960656ed67242d84e20a42400ffdee063ed6bcf3b860fef309d09ee71303f44abaafe9328
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}/cpp")
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}/cpp"
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
22 |
+
|
23 |
+
# Handle copyright
|
24 |
+
configure_file("${SOURCE_PATH}/Readme.markdown" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nayuki-qr-code-generator/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nayuki-qr-code-generator",
|
3 |
+
"version": "1.7.0",
|
4 |
+
"description": "High-quality QR Code generator library in C++",
|
5 |
+
"homepage": "https://github.com/nayuki/QR-Code-generator",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/FindNCCL.cmake
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Find the nccl libraries
|
2 |
+
#
|
3 |
+
# The following variables are optionally searched for defaults
|
4 |
+
# NCCL_ROOT: Base directory where all NCCL components are found
|
5 |
+
# NCCL_INCLUDE_DIR: Directory where NCCL header is found
|
6 |
+
# NCCL_LIB_DIR: Directory where NCCL library is found
|
7 |
+
#
|
8 |
+
# The following are set after configuration is done:
|
9 |
+
# NCCL_FOUND
|
10 |
+
# NCCL_INCLUDE_DIRS
|
11 |
+
# NCCL_LIBRARIES
|
12 |
+
#
|
13 |
+
# Adapted from https://github.com/pytorch/pytorch/blob/master/cmake/Modules/FindNCCL.cmake
|
14 |
+
|
15 |
+
set(NCCL_INCLUDE_DIR $ENV{NCCL_INCLUDE_DIR} CACHE PATH "Folder contains NVIDIA NCCL headers")
|
16 |
+
set(NCCL_LIB_DIR $ENV{NCCL_LIB_DIR} CACHE PATH "Folder contains NVIDIA NCCL libraries")
|
17 |
+
set(_NCCL_VERSION $ENV{NCCL_VERSION} CACHE STRING "Version of NCCL to build with")
|
18 |
+
|
19 |
+
list(APPEND NCCL_ROOT $ENV{NCCL_ROOT_DIR} ${CUDA_TOOLKIT_ROOT_DIR})
|
20 |
+
# Compatible layer for CMake <3.12. NCCL_ROOT will be accounted in for searching paths and libraries for CMake >=3.12.
|
21 |
+
list(APPEND CMAKE_PREFIX_PATH ${NCCL_ROOT})
|
22 |
+
|
23 |
+
find_path(NCCL_INCLUDE_DIRS
|
24 |
+
NAMES nccl.h
|
25 |
+
HINTS
|
26 |
+
${NCCL_INCLUDE_DIR}
|
27 |
+
$ENV{CUDNN_ROOT_DIR}
|
28 |
+
$ENV{CUDA_PATH}
|
29 |
+
$ENV{CUDNN_ROOT_DIR}
|
30 |
+
$ENV{CUDA_TOOLKIT_ROOT_DIR}
|
31 |
+
$ENV{NCCL}
|
32 |
+
/usr/include
|
33 |
+
PATH_SUFFIXES
|
34 |
+
include
|
35 |
+
)
|
36 |
+
|
37 |
+
if (USE_STATIC_NCCL)
|
38 |
+
MESSAGE(STATUS "USE_STATIC_NCCL is set. Linking with static NCCL library.")
|
39 |
+
SET(NCCL_LIBNAME "nccl_static")
|
40 |
+
if (_NCCL_VERSION) # Prefer the versioned library if a specific NCCL version is specified
|
41 |
+
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a.${_NCCL_VERSION}" ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
42 |
+
endif()
|
43 |
+
else()
|
44 |
+
SET(NCCL_LIBNAME "nccl")
|
45 |
+
if (_NCCL_VERSION) # Prefer the versioned library if a specific NCCL version is specified
|
46 |
+
set(CMAKE_FIND_LIBRARY_SUFFIXES ".so.${_NCCL_VERSION}" ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
47 |
+
endif()
|
48 |
+
endif()
|
49 |
+
|
50 |
+
# Read version from header
|
51 |
+
if(EXISTS "${NCCL_INCLUDE_DIRS}/nccl.h")
|
52 |
+
file(READ ${NCCL_INCLUDE_DIRS}/nccl.h NCCL_HEADER_CONTENTS)
|
53 |
+
endif()
|
54 |
+
if(NCCL_HEADER_CONTENTS)
|
55 |
+
string(REGEX MATCH "define NCCL_MAJOR * +([0-9]+)"
|
56 |
+
_NCCL_VERSION_MAJOR "${NCCL_HEADER_CONTENTS}")
|
57 |
+
string(REGEX REPLACE "define NCCL_MAJOR * +([0-9]+)" "\\1"
|
58 |
+
_NCCL_VERSION_MAJOR "${_NCCL_VERSION_MAJOR}")
|
59 |
+
string(REGEX MATCH "define NCCL_MINOR * +([0-9]+)"
|
60 |
+
_NCCL_VERSION_MINOR "${NCCL_HEADER_CONTENTS}")
|
61 |
+
string(REGEX REPLACE "define NCCL_MINOR * +([0-9]+)" "\\1"
|
62 |
+
_NCCL_VERSION_MINOR "${_NCCL_VERSION_MINOR}")
|
63 |
+
string(REGEX MATCH "define NCCL_PATCH * +([0-9]+)"
|
64 |
+
_NCCL_VERSION_PATCH "${NCCL_HEADER_CONTENTS}")
|
65 |
+
string(REGEX REPLACE "define NCCL_PATCH * +([0-9]+)" "\\1"
|
66 |
+
_NCCL_VERSION_PATCH "${_NCCL_VERSION_PATCH}")
|
67 |
+
if(NOT _NCCL_VERSION_MAJOR)
|
68 |
+
set(_NCCL_VERSION "?")
|
69 |
+
else()
|
70 |
+
set(_NCCL_VERSION "${_NCCL_VERSION_MAJOR}.${_NCCL_VERSION_MINOR}.${_NCCL_VERSION_PATCH}")
|
71 |
+
endif()
|
72 |
+
endif()
|
73 |
+
|
74 |
+
find_library(NCCL_LIBRARIES
|
75 |
+
NAMES ${NCCL_LIBNAME}
|
76 |
+
HINTS
|
77 |
+
${NCCL_LIB_DIR}
|
78 |
+
${CUDA_TOOLKIT_ROOT}
|
79 |
+
$ENV{CUDA_PATH}
|
80 |
+
$ENV{CUDNN_ROOT_DIR}
|
81 |
+
$ENV{CUDA_TOOLKIT_ROOT_DIR}
|
82 |
+
$ENV{NCCL}
|
83 |
+
/usr/lib/x86_64-linux-gnu/
|
84 |
+
PATH_SUFFIXES
|
85 |
+
lib
|
86 |
+
lib64
|
87 |
+
)
|
88 |
+
|
89 |
+
include(FindPackageHandleStandardArgs)
|
90 |
+
find_package_handle_standard_args(NCCL
|
91 |
+
REQUIRED_VARS NCCL_INCLUDE_DIRS NCCL_LIBRARIES
|
92 |
+
VERSION_VAR _NCCL_VERSION)
|
93 |
+
|
94 |
+
if(NCCL_FOUND) # obtaining NCCL version and some sanity checks
|
95 |
+
message(STATUS "Found NCCL ${_NCCL_VERSION} (include: ${NCCL_INCLUDE_DIRS}, library: ${NCCL_LIBRARIES})")
|
96 |
+
mark_as_advanced(NCCL_ROOT_DIR NCCL_INCLUDE_DIRS NCCL_LIBRARIES NCCL_VERSION)
|
97 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/portfile.cmake
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# Find NCCL. We can use FindNCCL directly since it doesn't call any functions
|
3 |
+
# that are disallowed in CMake script mode
|
4 |
+
set(MINIMUM_NCCL_VERSION "2.4.6.1")
|
5 |
+
set(NCCL_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
|
6 |
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
7 |
+
find_package(NCCL ${MINIMUM_NCCL_VERSION})
|
8 |
+
set(CMAKE_MODULE_PATH ${NCCL_PREV_MODULE_PATH})
|
9 |
+
|
10 |
+
# Download or return
|
11 |
+
if(NCCL_FOUND)
|
12 |
+
message(STATUS "Using NCCL ${_NCCL_VERSION} located on system.")
|
13 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
14 |
+
else()
|
15 |
+
message(FATAL_ERROR "Please install NCCL using your system package manager (the same way you installed CUDA). For example: apt install libnccl2 libnccl-dev.")
|
16 |
+
endif()
|
17 |
+
|
18 |
+
file(INSTALL "${CURRENT_PORT_DIR}/FindNCCL.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
19 |
+
configure_file("${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
20 |
+
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package nccl provides CMake variables:
|
2 |
+
|
3 |
+
find_package(NCCL REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE ${NCCL_LIBRARIES})
|
5 |
+
target_include_directories(main PRIVATE ${NCCL_INCLUDE_DIRS})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(NCCL_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
|
2 |
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
3 |
+
|
4 |
+
_find_package(${ARGS})
|
5 |
+
|
6 |
+
set(CMAKE_MODULE_PATH ${NCCL_PREV_MODULE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nccl/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nccl",
|
3 |
+
"version": "2.4.6",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Optimized primitives for collective multi-GPU communication.",
|
6 |
+
"supports": "linux & x64",
|
7 |
+
"dependencies": [
|
8 |
+
"cuda"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ncurses/portfile.cmake
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(NCURSES_VERSION_STR 6.3)
|
2 |
+
vcpkg_download_distfile(
|
3 |
+
ARCHIVE_PATH
|
4 |
+
URLS
|
5 |
+
"https://invisible-mirror.net/archives/ncurses/ncurses-${NCURSES_VERSION_STR}.tar.gz"
|
6 |
+
"ftp://ftp.invisible-island.net/ncurses/ncurses-${NCURSES_VERSION_STR}.tar.gz"
|
7 |
+
"https://ftp.gnu.org/gnu/ncurses/ncurses-${NCURSES_VERSION_STR}.tar.gz"
|
8 |
+
FILENAME "ncurses-${NCURSES_VERSION_STR}.tgz"
|
9 |
+
SHA512 5373f228cba6b7869210384a607a2d7faecfcbfef6dbfcd7c513f4e84fbd8bcad53ac7db2e7e84b95582248c1039dcfc7c4db205a618f7da22a166db482f0105
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_extract_source_archive_ex(
|
13 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
14 |
+
ARCHIVE "${ARCHIVE_PATH}"
|
15 |
+
)
|
16 |
+
|
17 |
+
set(OPTIONS
|
18 |
+
--disable-db-install
|
19 |
+
--enable-pc-files
|
20 |
+
--without-ada
|
21 |
+
--without-manpages
|
22 |
+
--without-progs
|
23 |
+
--without-tack
|
24 |
+
--without-tests
|
25 |
+
)
|
26 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
27 |
+
list(APPEND OPTIONS
|
28 |
+
--with-shared
|
29 |
+
--with-cxx-shared
|
30 |
+
--without-normal
|
31 |
+
)
|
32 |
+
endif()
|
33 |
+
if(VCPKG_TARGET_IS_MINGW)
|
34 |
+
list(APPEND OPTIONS
|
35 |
+
--disable-home-terminfo
|
36 |
+
--enable-term-driver
|
37 |
+
--disable-termcap
|
38 |
+
)
|
39 |
+
endif()
|
40 |
+
|
41 |
+
set(OPTIONS_DEBUG
|
42 |
+
"--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/debug/lib/pkgconfig"
|
43 |
+
--with-debug
|
44 |
+
--without-normal
|
45 |
+
)
|
46 |
+
set(OPTIONS_RELEASE
|
47 |
+
"--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/lib/pkgconfig"
|
48 |
+
--without-debug
|
49 |
+
--with-normal
|
50 |
+
)
|
51 |
+
|
52 |
+
vcpkg_configure_make(
|
53 |
+
SOURCE_PATH ${SOURCE_PATH}
|
54 |
+
OPTIONS ${OPTIONS}
|
55 |
+
OPTIONS_DEBUG ${OPTIONS_DEBUG}
|
56 |
+
OPTIONS_RELEASE ${OPTIONS_RELEASE}
|
57 |
+
NO_ADDITIONAL_PATHS
|
58 |
+
)
|
59 |
+
vcpkg_install_make()
|
60 |
+
|
61 |
+
vcpkg_fixup_pkgconfig()
|
62 |
+
|
63 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
64 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
65 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
66 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
67 |
+
|
68 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
69 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ncurses/usage
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package ncurses is compatible with built-in CMake variables:
|
2 |
+
|
3 |
+
set(CURSES_NEED_NCURSES TRUE)
|
4 |
+
find_package(Curses REQUIRED)
|
5 |
+
target_include_directories(main ${CURSES_INCLUDE_DIRS})
|
6 |
+
target_compile_options(main ${CURSES_CFLAGS})
|
7 |
+
target_link_libraries(main PRIVATE ${CURSES_LIBRARIES})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ncurses/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ncurses",
|
3 |
+
"version": "6.3",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "free software emulation of curses in System V Release 4.0",
|
6 |
+
"homepage": "https://invisible-island.net/ncurses/announce.html",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "!windows | mingw"
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/neargye-semver/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Neargye/semver
|
6 |
+
REF v0.3.0
|
7 |
+
SHA512 b620a27d31ca2361e243e4def890ddfc4dfb65a507187c918fabc332d48c420fb10b0e6fb38c83c4c3998a047201e81b70a164c66675351cf4ff9475defc6287
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${SOURCE_PATH}/include/semver.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include/neargye")
|
12 |
+
|
13 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/neargye-semver/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "neargye-semver",
|
3 |
+
"version": "0.3.0",
|
4 |
+
"description": "C++17 header-only dependency-free versioning library complying with Semantic Versioning 2.0.0",
|
5 |
+
"homepage": "https://github.com/Neargye/semver"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/portfile.cmake
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# QuickCppLib is composed of other third party libraries:
|
2 |
+
# <= quickcpplib
|
3 |
+
# <= byte-lite
|
4 |
+
# <= gsl-lite
|
5 |
+
# <= Optional
|
6 |
+
#
|
7 |
+
# byte-lite and gsl-lite are in vcpkg, but may not be versions
|
8 |
+
# known to be compatible with QuickCppLib. It has occurred in the
|
9 |
+
# past that newer versions were severely broken with QuickCppLib.
|
10 |
+
|
11 |
+
include(${CURRENT_PORT_DIR}/sha_manifest.cmake)
|
12 |
+
|
13 |
+
if (NOT "cxx20" IN_LIST FEATURES)
|
14 |
+
message(WARNING [=[
|
15 |
+
QuickCppLib and its downstream dependencies Outcome and LLFIO were tested against gsl-lite version 0.38.1 and byte-lite version 0.3.0. They are not guaranteed to work with newer versions, with failures experienced in the past up-to-and-including runtime crashes. You can pin the versions as verified to work in QuickCppLib's CI in your manifest file by adding:
|
16 |
+
"overrides": [
|
17 |
+
{ "name": "gsl-lite", "version": "0.38.1" },
|
18 |
+
{ "name": "byte-lite", "version": "0.3.0" }
|
19 |
+
]
|
20 |
+
Do not report issues to upstream without first pinning these previous versions.
|
21 |
+
]=])
|
22 |
+
endif()
|
23 |
+
|
24 |
+
vcpkg_from_github(
|
25 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
26 |
+
REPO ned14/quickcpplib
|
27 |
+
REF ${QUICKCPPLIB_REF}
|
28 |
+
SHA512 ${QUICKCPPLIB_SHA512}
|
29 |
+
HEAD_REF master
|
30 |
+
PATCHES
|
31 |
+
quicklib-depheaders.patch
|
32 |
+
)
|
33 |
+
|
34 |
+
# Quickcpplib deploys subsets of the dependency headers into a private subdirectory
|
35 |
+
if (NOT "cxx17" IN_LIST FEATURES)
|
36 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/include/nonstd/byte.hpp"
|
37 |
+
DESTINATION "${SOURCE_PATH}/include/quickcpplib/byte/include/nonstd")
|
38 |
+
endif()
|
39 |
+
if (NOT "cxx20" IN_LIST FEATURES)
|
40 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/include/gsl/gsl-lite.hpp"
|
41 |
+
DESTINATION "${SOURCE_PATH}/include/quickcpplib/gsl-lite/include/gsl")
|
42 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/include/gsl-lite/gsl-lite.hpp"
|
43 |
+
DESTINATION "${SOURCE_PATH}/include/quickcpplib/gsl-lite/include/gsl-lite")
|
44 |
+
endif()
|
45 |
+
|
46 |
+
vcpkg_from_github(
|
47 |
+
OUT_SOURCE_PATH OPT_SOURCE_PATH
|
48 |
+
REPO akrzemi1/Optional
|
49 |
+
REF ${OPTIONAL_REF}
|
50 |
+
SHA512 ${OPTIONAL_SHA512}
|
51 |
+
HEAD_REF master
|
52 |
+
)
|
53 |
+
|
54 |
+
file(COPY "${OPT_SOURCE_PATH}/." DESTINATION "${SOURCE_PATH}/include/quickcpplib/optional")
|
55 |
+
|
56 |
+
# Because quickcpplib's deployed files are header-only, the debug build it not necessary
|
57 |
+
set(VCPKG_BUILD_TYPE release)
|
58 |
+
|
59 |
+
vcpkg_check_features(
|
60 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
61 |
+
FEATURES
|
62 |
+
cxx17 QUICKCPPLIB_REQUIRE_CXX17
|
63 |
+
cxx20 QUICKCPPLIB_REQUIRE_CXX20
|
64 |
+
)
|
65 |
+
|
66 |
+
# Use QuickCppLib's own build process, skipping examples and tests.
|
67 |
+
vcpkg_cmake_configure(
|
68 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
69 |
+
PREFER_NINJA
|
70 |
+
OPTIONS
|
71 |
+
-DPROJECT_IS_DEPENDENCY=On
|
72 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
73 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
74 |
+
-DCMAKE_INSTALL_DATADIR=${CURRENT_PACKAGES_DIR}/share/ned14-internal-quickcpplib
|
75 |
+
${FEATURE_OPTIONS}
|
76 |
+
MAYBE_UNUSED_VARIABLES
|
77 |
+
CMAKE_DISABLE_FIND_PACKAGE_Doxygen
|
78 |
+
)
|
79 |
+
|
80 |
+
vcpkg_cmake_install()
|
81 |
+
|
82 |
+
vcpkg_cmake_config_fixup(
|
83 |
+
PACKAGE_NAME quickcpplib
|
84 |
+
CONFIG_PATH lib/cmake/quickcpplib
|
85 |
+
)
|
86 |
+
|
87 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
88 |
+
|
89 |
+
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
90 |
+
file(INSTALL "${SOURCE_PATH}/Licence.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/quicklib-depheaders.patch
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/headers.cmake b/cmake/headers.cmake
|
2 |
+
index 1aad359..e5053ed 100644
|
3 |
+
--- a/cmake/headers.cmake
|
4 |
+
+++ b/cmake/headers.cmake
|
5 |
+
@@ -15,8 +15,6 @@ set(quickcpplib_HEADERS
|
6 |
+
"include/quickcpplib/boost/test/unit_test.hpp"
|
7 |
+
"include/quickcpplib/byte.hpp"
|
8 |
+
"include/quickcpplib/byte/include/nonstd/byte.hpp"
|
9 |
+
- "include/quickcpplib/byte/test/byte-main.t.hpp"
|
10 |
+
- "include/quickcpplib/byte/test/lest/lest_cpp03.hpp"
|
11 |
+
"include/quickcpplib/config.hpp"
|
12 |
+
"include/quickcpplib/console_colours.hpp"
|
13 |
+
"include/quickcpplib/cpp_feature.h"
|
14 |
+
@@ -27,15 +25,8 @@ set(quickcpplib_HEADERS
|
15 |
+
"include/quickcpplib/erasure_cast.hpp"
|
16 |
+
"include/quickcpplib/execinfo_win64.h"
|
17 |
+
"include/quickcpplib/function_ptr.hpp"
|
18 |
+
- "include/quickcpplib/gsl-lite/gsl-lite.natvis"
|
19 |
+
"include/quickcpplib/gsl-lite/include/gsl-lite/gsl-lite.hpp"
|
20 |
+
- "include/quickcpplib/gsl-lite/include/gsl.h"
|
21 |
+
- "include/quickcpplib/gsl-lite/include/gsl.hpp"
|
22 |
+
- "include/quickcpplib/gsl-lite/include/gsl/gsl-lite-vc6.hpp"
|
23 |
+
- "include/quickcpplib/gsl-lite/include/gsl/gsl-lite.h"
|
24 |
+
"include/quickcpplib/gsl-lite/include/gsl/gsl-lite.hpp"
|
25 |
+
- "include/quickcpplib/gsl-lite/test/gsl-lite.t.hpp"
|
26 |
+
- "include/quickcpplib/gsl-lite/test/lest_cpp03.hpp"
|
27 |
+
"include/quickcpplib/import.h"
|
28 |
+
"include/quickcpplib/in_place_detach_attach.hpp"
|
29 |
+
"include/quickcpplib/mem_flush_loads_stores.hpp"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/sha_manifest.cmake
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(QUICKCPPLIB_REF cad832c8083c8eb984c26ee995609817f27f9847)
|
2 |
+
set(QUICKCPPLIB_SHA512 4a2cd3d3e90317a201088291781d13bbc66f4beadfead61ed894f6f5fa38001fb94b68f0965ae77efd9e43c274583e74c00a0781018cd1714ec99e00c9b17824)
|
3 |
+
|
4 |
+
set(OPTIONAL_REF 2b43315458a99fc5de1da6e7bc0ddd364b26d643)
|
5 |
+
set(OPTIONAL_SHA512 1952386cd3c7b963861f9634055e1baa4181d398d6f1b068a8a3f411368432bdcd42e47aadfa856584ed9a7c724a1c83369243ccb653e650af5c9155b42a84f4)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/usage
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
You should NOT DIRECTLY USE quickcpplib in your own libraries!
|
2 |
+
It is intended for internal use by ned14's vcpkg libraries only.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ned14-internal-quickcpplib/vcpkg.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ned14-internal-quickcpplib",
|
3 |
+
"version-string": "0.0.0-cad832c8",
|
4 |
+
"description": "NOT FOR EXTERNAL CONSUMPTION, a set of internal scripts used by ned14's libraries.",
|
5 |
+
"homepage": "https://github.com/ned14/quickcpplib",
|
6 |
+
"dependencies": [
|
7 |
+
"byte-lite",
|
8 |
+
"gsl-lite",
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"cxx17": {
|
20 |
+
"description": "Do not polyfill C++17 entities"
|
21 |
+
},
|
22 |
+
"cxx20": {
|
23 |
+
"description": "Do not polyfill C++20 entities",
|
24 |
+
"dependencies": [
|
25 |
+
{
|
26 |
+
"name": "ned14-internal-quickcpplib",
|
27 |
+
"default-features": false,
|
28 |
+
"features": [
|
29 |
+
"cxx17"
|
30 |
+
]
|
31 |
+
}
|
32 |
+
]
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/neon2sse/portfile.cmake
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO intel/ARM_NEON_2_x86_SSE
|
4 |
+
REF a1652fd5253afbf3e39357b012974f93511f6108
|
5 |
+
SHA512 9f8aa283e48eb3b615da3d89ec4165d1ec9599e8e181059c2b9acb2921ce753ce0f29b8c321d7d6661f10eb67e234c629df75853b87c4139a9bb137dbb3f4fc1
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
)
|
12 |
+
vcpkg_cmake_install()
|
13 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME NEON_2_SSE CONFIG_PATH lib/cmake/NEON_2_SSE)
|
14 |
+
|
15 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
16 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
|
17 |
+
"${CURRENT_PACKAGES_DIR}/lib"
|
18 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/neon2sse/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "neon2sse",
|
3 |
+
"version-date": "2021-09-16",
|
4 |
+
"description": "Open standard for machine learning interoperability",
|
5 |
+
"homepage": "https://github.com/intel/ARM_NEON_2_x86_SSE",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-dependency-libmath.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index c36908b..390ac0a 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -944,7 +944,7 @@ OPTION(ENABLE_BYTERANGE "Enable byte-range access to remote datasets.." OFF)
|
6 |
+
|
7 |
+
# Check for the math library so it can be explicitly linked.
|
8 |
+
IF(NOT WIN32)
|
9 |
+
- FIND_LIBRARY(HAVE_LIBM NAMES math m libm)
|
10 |
+
+ FIND_LIBRARY(HAVE_LIBM NAMES m libm math)
|
11 |
+
MESSAGE(STATUS "Found Math library: ${HAVE_LIBM}")
|
12 |
+
IF(NOT HAVE_LIBM)
|
13 |
+
MESSAGE(FATAL_ERROR "Unable to find the math library.")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-dependency-libzip.patch
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index b93a141..c3763a7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -957,7 +957,14 @@ OPTION(ENABLE_DAP_REMOTE_TESTS "Enable DAP remote tests." ON)
|
6 |
+
SET(REMOTETESTSERVERS "remotetest.unidata.ucar.edu" CACHE STRING "test servers to use for remote test")
|
7 |
+
|
8 |
+
# See if we have libzip
|
9 |
+
-FIND_PACKAGE(Zip)
|
10 |
+
+if(ENABLE_NCZARR_ZIP)
|
11 |
+
+ find_package(libzip CONFIG REQUIRED)
|
12 |
+
+ set(Zip_LIBRARIES libzip::zip)
|
13 |
+
+ set(Zip_FOUND TRUE)
|
14 |
+
+else()
|
15 |
+
+ set(Zip_LIBRARIES "")
|
16 |
+
+ set(Zip_FOUND FALSE)
|
17 |
+
+endif()
|
18 |
+
|
19 |
+
# Define a test flag for have curl library
|
20 |
+
IF(Zip_FOUND)
|
21 |
+
diff --git a/netCDFConfig.cmake.in b/netCDFConfig.cmake.in
|
22 |
+
index b3be259..72b4b25 100644
|
23 |
+
--- a/netCDFConfig.cmake.in
|
24 |
+
+++ b/netCDFConfig.cmake.in
|
25 |
+
@@ -15,6 +15,9 @@ set(netCDF_LIBRARIES netCDF::netcdf)
|
26 |
+
include(CMakeFindDependencyMacro)
|
27 |
+
find_dependency(HDF5 CONFIG)
|
28 |
+
find_dependency(CURL CONFIG)
|
29 |
+
+if(@ENABLE_NCZARR_ZIP@)
|
30 |
+
+ find_dependency(libzip CONFIG)
|
31 |
+
+endif()
|
32 |
+
include("${CMAKE_CURRENT_LIST_DIR}/netCDFTargets.cmake")
|
33 |
+
|
34 |
+
# Compiling Options
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-dependency-mpi.patch
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt
|
2 |
+
+++ b/CMakeLists.txt
|
3 |
+
@@ -1207,7 +1207,8 @@
|
4 |
+
IF(NOT HDF5_PARALLEL)
|
5 |
+
SET(USE_PARALLEL OFF CACHE BOOL "")
|
6 |
+
MESSAGE(STATUS "Cannot find HDF5 library built with parallel support. Disabling parallel build.")
|
7 |
+
ELSE()
|
8 |
+
FIND_PACKAGE(MPI REQUIRED)
|
9 |
+
+ list(REMOVE_ITEM MPI_C_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
|
10 |
+
SET(HDF5_PARALLEL ON CACHE BOOL "")
|
11 |
+
SET(USE_PARALLEL ON CACHE BOOL "")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-dependency-zlib.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/liblib/CMakeLists.txt b/liblib/CMakeLists.txt
|
2 |
+
index be72612..5e1692f 100644
|
3 |
+
--- a/liblib/CMakeLists.txt
|
4 |
+
+++ b/liblib/CMakeLists.txt
|
5 |
+
@@ -67,7 +67,7 @@ ENDIF()
|
6 |
+
|
7 |
+
SET(TLL_LIBS "")
|
8 |
+
|
9 |
+
-SET(TLL_LIBS ${TLL_LIBS} ${HAVE_LIBM} ${ZLIB_LIBRARY})
|
10 |
+
+SET(TLL_LIBS ${TLL_LIBS} ${HAVE_LIBM})
|
11 |
+
|
12 |
+
# Add extra dependencies specified via NC_EXTRA_DEPS
|
13 |
+
SET(TLL_LIBS ${TLL_LIBS} ${EXTRA_DEPS})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-linkage-error.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/liblib/CMakeLists.txt b/liblib/CMakeLists.txt
|
2 |
+
index 9e126ec..1363d35 100644
|
3 |
+
--- a/liblib/CMakeLists.txt
|
4 |
+
+++ b/liblib/CMakeLists.txt
|
5 |
+
@@ -79,8 +79,14 @@ ENDIF()
|
6 |
+
IF(USE_HDF5)
|
7 |
+
if(TARGET hdf5::hdf5-shared)
|
8 |
+
SET(TLL_LIBS ${TLL_LIBS} hdf5::hdf5-shared hdf5::hdf5_hl-shared)
|
9 |
+
+ if(USE_PARALLEL)
|
10 |
+
+ list(APPEND TLL_LIBS ${MPI_C_LIBRARIES})
|
11 |
+
+ endif()
|
12 |
+
else()
|
13 |
+
SET(TLL_LIBS ${TLL_LIBS} hdf5::hdf5-static hdf5::hdf5_hl-static)
|
14 |
+
+ if(USE_PARALLEL)
|
15 |
+
+ list(APPEND TLL_LIBS ${MPI_C_LIBRARIES})
|
16 |
+
+ endif()
|
17 |
+
endif()
|
18 |
+
elseif(0)
|
19 |
+
IF(NOT MSVC)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-manpage-msys.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libsrc/CMakeLists.txt b/libsrc/CMakeLists.txt
|
2 |
+
index 4583733..20ce3bf 100644
|
3 |
+
--- a/libsrc/CMakeLists.txt
|
4 |
+
+++ b/libsrc/CMakeLists.txt
|
5 |
+
@@ -64,7 +64,7 @@ IF(HAVE_M4)
|
6 |
+
IF(NOT MSVC)
|
7 |
+
ADD_CUSTOM_TARGET(manpage ALL
|
8 |
+
|
9 |
+
- COMMAND ${NC_M4} ${ARGS_MANPAGE} '${CMAKE_CURRENT_BINARY_DIR}/netcdf.m4' > '${CMAKE_CURRENT_BINARY_DIR}/netcdf.3'
|
10 |
+
+ COMMAND ${NC_M4} ${ARGS_MANPAGE} "${CMAKE_CURRENT_BINARY_DIR}/netcdf.m4" > "${CMAKE_CURRENT_BINARY_DIR}/netcdf.3" VERBATIM
|
11 |
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
12 |
+
)
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/fix-pkgconfig.patch
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 390ac0a..4bcd909 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -2100,6 +2100,21 @@ STRING(REPLACE ";" " " LINKFLAGS "${LINKFLAGS}")
|
6 |
+
SET(LIBS ${NC_LIBS})
|
7 |
+
SET(NC_LIBS "-lnetcdf")
|
8 |
+
|
9 |
+
+set(NC_LIBS_PRIVATE " ${LIBS} ")
|
10 |
+
+set(NC_REQUIRES_PRIVATE "")
|
11 |
+
+macro(replace_pkgconfig_module PATTERN MODULE)
|
12 |
+
+ if(NC_LIBS_PRIVATE MATCHES " ${PATTERN} ")
|
13 |
+
+ string(REPLACE "${CMAKE_MATCH_0}" " " NC_LIBS_PRIVATE "${NC_LIBS_PRIVATE}")
|
14 |
+
+ string(APPEND NC_REQUIRES_PRIVATE " ${MODULE}")
|
15 |
+
+ endif()
|
16 |
+
+endmacro()
|
17 |
+
+replace_pkgconfig_module("-lhdf5_hl" "hdf5_hl")
|
18 |
+
+replace_pkgconfig_module("-lhdf5" "hdf5")
|
19 |
+
+replace_pkgconfig_module("-lmpi" "ompi-c")
|
20 |
+
+replace_pkgconfig_module("-lzip" "libzip")
|
21 |
+
+replace_pkgconfig_module("-lCURL[^ ]*" "libcurl")
|
22 |
+
+replace_pkgconfig_module("-lZLIB[^ ]*" "zlib")
|
23 |
+
+
|
24 |
+
configure_file(
|
25 |
+
${netCDF_SOURCE_DIR}/netcdf.pc.in
|
26 |
+
${netCDF_BINARY_DIR}/netcdf.pc @ONLY)
|
27 |
+
diff --git a/netcdf.pc.in b/netcdf.pc.in
|
28 |
+
index 22b5594..a48b7c2 100644
|
29 |
+
--- a/netcdf.pc.in
|
30 |
+
+++ b/netcdf.pc.in
|
31 |
+
@@ -9,5 +9,6 @@ Description: NetCDF Client Library for C
|
32 |
+
URL: http://www.unidata.ucar.edu/netcdf
|
33 |
+
Version: @PACKAGE_VERSION@
|
34 |
+
Libs: -L${libdir} @NC_LIBS@
|
35 |
+
-Libs.private: @LIBS@
|
36 |
+
+Libs.private: @NC_LIBS_PRIVATE@
|
37 |
+
Cflags: -I${includedir}
|
38 |
+
+Requires.private: @NC_REQUIRES_PRIVATE@
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/no-install-deps.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6b39f0e..507eb4c 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -2028,7 +2028,7 @@ ADD_SUBDIRECTORY(docs)
|
6 |
+
# install them in the binary dir. Grab all of the .libs, put them
|
7 |
+
# in the libdir.
|
8 |
+
##
|
9 |
+
-IF(MSVC)
|
10 |
+
+IF(MSVC AND NOT DISABLE_INSTALL_DEPENDENCIES)
|
11 |
+
FILE(GLOB COPY_FILES ${CMAKE_PREFIX_PATH}/lib/*.lib)
|
12 |
+
INSTALL(FILES ${COPY_FILES}
|
13 |
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/portfile.cmake
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Unidata/netcdf-c
|
4 |
+
REF cd6173f472b778fa0e558982c59f7183aa5b8e47 # v4.8.1
|
5 |
+
SHA512 e965b9c865f31abcd0ae045cb709a41710e72bcf5bd237972cd62688f0f099f1b12be316a448d22315b1c73eb99fae3ea38072e9a3646a4f70ba42507d82f537
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
no-install-deps.patch
|
9 |
+
fix-dependency-zlib.patch
|
10 |
+
use_targets.patch
|
11 |
+
fix-dependency-libmath.patch
|
12 |
+
fix-linkage-error.patch
|
13 |
+
fix-pkgconfig.patch
|
14 |
+
fix-manpage-msys.patch
|
15 |
+
fix-dependency-libzip.patch
|
16 |
+
fix-dependency-mpi.patch
|
17 |
+
)
|
18 |
+
|
19 |
+
#Remove outdated find modules
|
20 |
+
file(REMOVE "${SOURCE_PATH}/cmake/modules/FindSZIP.cmake")
|
21 |
+
file(REMOVE "${SOURCE_PATH}/cmake/modules/FindZLIB.cmake")
|
22 |
+
file(REMOVE "${SOURCE_PATH}/cmake/modules/windows/FindHDF5.cmake")
|
23 |
+
|
24 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_MINGW)
|
25 |
+
set(CRT_OPTION "")
|
26 |
+
elseif(VCPKG_CRT_LINKAGE STREQUAL "static")
|
27 |
+
set(CRT_OPTION -DNC_USE_STATIC_CRT=ON)
|
28 |
+
else()
|
29 |
+
set(CRT_OPTION -DNC_USE_STATIC_CRT=OFF)
|
30 |
+
endif()
|
31 |
+
|
32 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
33 |
+
FEATURES
|
34 |
+
dap ENABLE_DAP
|
35 |
+
netcdf-4 ENABLE_NETCDF_4
|
36 |
+
hdf5 ENABLE_HDF5
|
37 |
+
nczarr ENABLE_NCZARR
|
38 |
+
nczarr-zip ENABLE_NCZARR_ZIP
|
39 |
+
tools BUILD_UTILITIES
|
40 |
+
)
|
41 |
+
|
42 |
+
if(NOT ENABLE_DAP AND NOT ENABLE_NCZARR)
|
43 |
+
list(APPEND FEATURE_OPTIONS "-DCMAKE_DISABLE_FIND_PACKAGE_CURL=ON")
|
44 |
+
endif()
|
45 |
+
|
46 |
+
if(ENABLE_HDF5)
|
47 |
+
# Fix hdf5 szip support detection for static linkage.
|
48 |
+
x_vcpkg_pkgconfig_get_modules(
|
49 |
+
PREFIX HDF5
|
50 |
+
MODULES hdf5
|
51 |
+
LIBRARIES
|
52 |
+
)
|
53 |
+
if(HDF5_LIBRARIES_RELEASE MATCHES "szip")
|
54 |
+
list(APPEND FEATURE_OPTIONS "-DUSE_SZIP=ON")
|
55 |
+
endif()
|
56 |
+
endif()
|
57 |
+
|
58 |
+
if(VCPKG_TARGET_IS_UWP)
|
59 |
+
string(APPEND VCPKG_C_FLAGS " /wd4996 /wd4703")
|
60 |
+
string(APPEND VCPKG_CXX_FLAGS " /wd4996 /wd4703")
|
61 |
+
endif()
|
62 |
+
|
63 |
+
vcpkg_cmake_configure(
|
64 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
65 |
+
DISABLE_PARALLEL_CONFIGURE # netcdf-c configures in the source!
|
66 |
+
OPTIONS
|
67 |
+
-DBUILD_TESTING=OFF
|
68 |
+
-DENABLE_EXAMPLES=OFF
|
69 |
+
-DENABLE_TESTS=OFF
|
70 |
+
-DENABLE_FILTER_TESTING=OFF
|
71 |
+
-DENABLE_DAP_REMOTE_TESTS=OFF
|
72 |
+
-DDISABLE_INSTALL_DEPENDENCIES=ON
|
73 |
+
${CRT_OPTION}
|
74 |
+
${FEATURE_OPTIONS}
|
75 |
+
)
|
76 |
+
|
77 |
+
vcpkg_cmake_install()
|
78 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME "netcdf" CONFIG_PATH "lib/cmake/netCDF")
|
79 |
+
vcpkg_fixup_pkgconfig()
|
80 |
+
|
81 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/nc-config" "${CURRENT_PACKAGES_DIR}/bin/nc-config") # invalid
|
82 |
+
if("tools" IN_LIST FEATURES)
|
83 |
+
vcpkg_copy_tools(
|
84 |
+
TOOL_NAMES nccopy ncdump ncgen ncgen3
|
85 |
+
AUTO_CLEAN
|
86 |
+
)
|
87 |
+
elseif(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)
|
88 |
+
# delete bin under non-windows because the dynamic libraries get put in lib
|
89 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
|
90 |
+
endif()
|
91 |
+
|
92 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
93 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
94 |
+
|
95 |
+
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/use_targets.patch
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 507eb4c..c36908b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -433,7 +433,6 @@ IF(NC_EXTRA_DEPS)
|
6 |
+
SET(EXTRA_DEPS ${EXTRA_DEPS} "${${_LIB}_DEP}")
|
7 |
+
ENDFOREACH()
|
8 |
+
MESSAGE("Extra deps: ${EXTRA_DEPS}")
|
9 |
+
- LIST(REMOVE_DUPLICATES EXTRA_DEPS)
|
10 |
+
SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${EXTRA_DEPS})
|
11 |
+
ENDIF()
|
12 |
+
###
|
13 |
+
@@ -628,15 +627,6 @@ IF(USE_HDF5)
|
14 |
+
# we will use a static library. This can be toggled
|
15 |
+
# by explicitly modifying NC_FIND_SHARED_LIBS.
|
16 |
+
##
|
17 |
+
- IF(NC_FIND_SHARED_LIBS)
|
18 |
+
- SET(NC_HDF5_LINK_TYPE "shared")
|
19 |
+
- SET(NC_HDF5_LINK_TYPE_UPPER "SHARED")
|
20 |
+
- ADD_DEFINITIONS(-DH5_BUILT_AS_DYNAMIC_LIB)
|
21 |
+
- ELSE(NC_FIND_SHARED_LIBS)
|
22 |
+
- SET(NC_HDF5_LINK_TYPE "static")
|
23 |
+
- SET(NC_HDF5_LINK_TYPE_UPPER "STATIC")
|
24 |
+
- ADD_DEFINITIONS(-DH5_BUILT_AS_STATIC_LIB)
|
25 |
+
- ENDIF(NC_FIND_SHARED_LIBS)
|
26 |
+
|
27 |
+
#####
|
28 |
+
# First, find the C and HL libraries.
|
29 |
+
@@ -649,7 +639,7 @@ IF(USE_HDF5)
|
30 |
+
SET(SEARCH_PACKAGE_NAME ${HDF5_PACKAGE_NAME})
|
31 |
+
FIND_PACKAGE(HDF5 NAMES ${SEARCH_PACKAGE_NAME} COMPONENTS C HL CONFIG REQUIRED ${NC_HDF5_LINK_TYPE})
|
32 |
+
ELSE(MSVC)
|
33 |
+
- FIND_PACKAGE(HDF5 COMPONENTS C HL REQUIRED)
|
34 |
+
+ FIND_PACKAGE(HDF5 COMPONENTS C HL CONFIG REQUIRED)
|
35 |
+
ENDIF(MSVC)
|
36 |
+
|
37 |
+
##
|
38 |
+
@@ -726,6 +716,19 @@ IF(USE_HDF5)
|
39 |
+
SET(HDF5_C_LIBRARY hdf5)
|
40 |
+
ENDIF()
|
41 |
+
ENDIF(HDF5_C_LIBRARY AND HDF5_HL_LIBRARY AND HDF5_INCLUDE_DIR)
|
42 |
+
+
|
43 |
+
+ if(TARGET hdf5::hdf5-shared)
|
44 |
+
+ set(HDF5_C_LIBRARY hdf5::hdf5-shared)
|
45 |
+
+ set(HDF5_C_LIBRARY_hdf5 hdf5::hdf5-shared)
|
46 |
+
+ set(HDF5_HL_LIBRARIES hdf5::hdf5_hl-shared)
|
47 |
+
+ ADD_DEFINITIONS(-DH5_BUILT_AS_DYNAMIC_LIB)
|
48 |
+
+ else()
|
49 |
+
+ set(HDF5_C_LIBRARY hdf5::hdf5-static)
|
50 |
+
+ set(HDF5_C_LIBRARY_hdf5 hdf5::hdf5-static)
|
51 |
+
+ set(HDF5_HL_LIBRARIES hdf5::hdf5_hl-static)
|
52 |
+
+ ADD_DEFINITIONS(-DH5_BUILT_AS_STATIC_LIB)
|
53 |
+
+ endif()
|
54 |
+
+ list(APPEND CMAKE_REQUIRED_LIBRARIES ${HDF5_C_LIBRARY})
|
55 |
+
|
56 |
+
FIND_PACKAGE(Threads)
|
57 |
+
|
58 |
+
@@ -745,6 +748,8 @@ IF(USE_HDF5)
|
59 |
+
IF(USE_SZIP)
|
60 |
+
# If user has specified the `SZIP_LIBRARY`, use it; otherwise try to find...
|
61 |
+
IF(NOT SZIP_LIBRARY)
|
62 |
+
+ set(SZIP_LIBRARY "")
|
63 |
+
+ ELSEIF(0)
|
64 |
+
FIND_LIBRARY(SZIP PATH NAMES szip sz)
|
65 |
+
SET(SZIP_LIBRARY ${SZIP})
|
66 |
+
IF(NOT SZIP)
|
67 |
+
@@ -847,8 +852,7 @@ IF(USE_HDF5)
|
68 |
+
ENDIF(USE_HDF5)
|
69 |
+
|
70 |
+
# See if we have libcurl
|
71 |
+
-FIND_PACKAGE(CURL)
|
72 |
+
-ADD_DEFINITIONS(-DCURL_STATICLIB=1)
|
73 |
+
+FIND_PACKAGE(CURL CONFIG)
|
74 |
+
INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIRS})
|
75 |
+
|
76 |
+
# Define a test flag for have curl library
|
77 |
+
@@ -2089,10 +2093,9 @@ IF(NC_LIBS)
|
78 |
+
STRING(REPLACE "-lhdf5::hdf5_hl-static" "-lhdf5_hl" NC_LIBS ${NC_LIBS})
|
79 |
+
ENDIF()
|
80 |
+
|
81 |
+
-STRING(REPLACE ";" " " LINKFLAGS "${LINKFLAGS}")
|
82 |
+
-
|
83 |
+
-LIST(REMOVE_DUPLICATES NC_LIBS)
|
84 |
+
+LIST(REMOVE_ITEM LINKFLAGS "-L")
|
85 |
+
LIST(REMOVE_DUPLICATES LINKFLAGS)
|
86 |
+
+STRING(REPLACE ";" " " LINKFLAGS "${LINKFLAGS}")
|
87 |
+
|
88 |
+
SET(LIBS ${NC_LIBS})
|
89 |
+
SET(NC_LIBS "-lnetcdf")
|
90 |
+
diff --git a/liblib/CMakeLists.txt b/liblib/CMakeLists.txt
|
91 |
+
index 5e1692f..9e126ec 100644
|
92 |
+
--- a/liblib/CMakeLists.txt
|
93 |
+
+++ b/liblib/CMakeLists.txt
|
94 |
+
@@ -77,6 +77,12 @@ IF(HAVE_LIBDL)
|
95 |
+
ENDIF()
|
96 |
+
|
97 |
+
IF(USE_HDF5)
|
98 |
+
+ if(TARGET hdf5::hdf5-shared)
|
99 |
+
+ SET(TLL_LIBS ${TLL_LIBS} hdf5::hdf5-shared hdf5::hdf5_hl-shared)
|
100 |
+
+ else()
|
101 |
+
+ SET(TLL_LIBS ${TLL_LIBS} hdf5::hdf5-static hdf5::hdf5_hl-static)
|
102 |
+
+ endif()
|
103 |
+
+elseif(0)
|
104 |
+
IF(NOT MSVC)
|
105 |
+
# Some version of cmake define HDF5_hdf5_LIBRARY instead of
|
106 |
+
# HDF5_LIBRARY. Same with HDF5_HL_LIBRARIES
|
107 |
+
@@ -97,7 +103,7 @@ IF(USE_HDF5)
|
108 |
+
ENDIF()
|
109 |
+
|
110 |
+
IF(FOUND_CURL)
|
111 |
+
- SET(TLL_LIBS ${TLL_LIBS} ${CURL_LIBRARY})
|
112 |
+
+ SET(TLL_LIBS ${TLL_LIBS} CURL::libcurl)
|
113 |
+
ENDIF()
|
114 |
+
|
115 |
+
IF(USE_HDF4)
|
116 |
+
@@ -118,7 +124,6 @@ IF(ENABLE_S3_SDK)
|
117 |
+
ENDIF()
|
118 |
+
|
119 |
+
IF(TLL_LIBS)
|
120 |
+
- LIST(REMOVE_DUPLICATES TLL_LIBS)
|
121 |
+
ENDIF()
|
122 |
+
|
123 |
+
TARGET_LINK_LIBRARIES(netcdf ${TLL_LIBS})
|
124 |
+
diff --git a/netCDFConfig.cmake.in b/netCDFConfig.cmake.in
|
125 |
+
index 9d68eec..b3be259 100644
|
126 |
+
--- a/netCDFConfig.cmake.in
|
127 |
+
+++ b/netCDFConfig.cmake.in
|
128 |
+
@@ -12,6 +12,9 @@ set_and_check(netCDF_LIB_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
|
129 |
+
set(netCDF_LIBRARIES netCDF::netcdf)
|
130 |
+
|
131 |
+
# include target information
|
132 |
+
+include(CMakeFindDependencyMacro)
|
133 |
+
+find_dependency(HDF5 CONFIG)
|
134 |
+
+find_dependency(CURL CONFIG)
|
135 |
+
include("${CMAKE_CURRENT_LIST_DIR}/netCDFTargets.cmake")
|
136 |
+
|
137 |
+
# Compiling Options
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-c/vcpkg.json
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "netcdf-c",
|
3 |
+
"version": "4.8.1",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A set of self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.",
|
6 |
+
"homepage": "https://github.com/Unidata/netcdf-c",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"default-features": [
|
18 |
+
"dap",
|
19 |
+
"nczarr",
|
20 |
+
"netcdf-4",
|
21 |
+
"platform-default-features"
|
22 |
+
],
|
23 |
+
"features": {
|
24 |
+
"dap": {
|
25 |
+
"description": "Build with DAP remote access client support",
|
26 |
+
"dependencies": [
|
27 |
+
{
|
28 |
+
"name": "curl",
|
29 |
+
"default-features": false
|
30 |
+
}
|
31 |
+
]
|
32 |
+
},
|
33 |
+
"hdf5": {
|
34 |
+
"description": "Build with HDF5 support",
|
35 |
+
"dependencies": [
|
36 |
+
{
|
37 |
+
"name": "hdf5",
|
38 |
+
"default-features": false,
|
39 |
+
"features": [
|
40 |
+
"zlib"
|
41 |
+
]
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"name": "netcdf-c",
|
45 |
+
"default-features": false,
|
46 |
+
"features": [
|
47 |
+
"netcdf-4"
|
48 |
+
]
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"name": "vcpkg-pkgconfig-get-modules",
|
52 |
+
"host": true
|
53 |
+
}
|
54 |
+
]
|
55 |
+
},
|
56 |
+
"nczarr": {
|
57 |
+
"description": "Build with NCZarr cloud storage access support",
|
58 |
+
"dependencies": [
|
59 |
+
{
|
60 |
+
"name": "netcdf-c",
|
61 |
+
"default-features": false,
|
62 |
+
"features": [
|
63 |
+
"netcdf-4"
|
64 |
+
]
|
65 |
+
}
|
66 |
+
]
|
67 |
+
},
|
68 |
+
"nczarr-zip": {
|
69 |
+
"description": "Build with NCZarr ZIP support",
|
70 |
+
"dependencies": [
|
71 |
+
{
|
72 |
+
"name": "libzip",
|
73 |
+
"default-features": false
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"name": "netcdf-c",
|
77 |
+
"default-features": false,
|
78 |
+
"features": [
|
79 |
+
"nczarr"
|
80 |
+
]
|
81 |
+
}
|
82 |
+
]
|
83 |
+
},
|
84 |
+
"netcdf-4": {
|
85 |
+
"description": "Build with netCDF-4 support"
|
86 |
+
},
|
87 |
+
"platform-default-features": {
|
88 |
+
"$comment": "Break vcpkg CI cascade.",
|
89 |
+
"description": "Enable platform-dependent default features",
|
90 |
+
"dependencies": [
|
91 |
+
{
|
92 |
+
"name": "netcdf-c",
|
93 |
+
"default-features": false,
|
94 |
+
"features": [
|
95 |
+
"hdf5"
|
96 |
+
],
|
97 |
+
"platform": "!uwp & !(arm64 & windows)"
|
98 |
+
}
|
99 |
+
]
|
100 |
+
},
|
101 |
+
"tools": {
|
102 |
+
"description": "Build utilities"
|
103 |
+
}
|
104 |
+
}
|
105 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/export-cmake-targets.patch
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f06fcc0..a19ab28 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -622,9 +622,23 @@ write_basic_package_version_file(
|
6 |
+
VERSION ${NCXX_VERSION}
|
7 |
+
COMPATIBILITY SameMajorVersion
|
8 |
+
)
|
9 |
+
+
|
10 |
+
+install(
|
11 |
+
+ EXPORT netcdf-cxx4Targets
|
12 |
+
+ FILE netcdf-cxx4Targets.cmake
|
13 |
+
+ NAMESPACE netCDF::
|
14 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/netCDFCxx
|
15 |
+
+ )
|
16 |
+
|
17 |
+
+configure_package_config_file(
|
18 |
+
+ "${CMAKE_CURRENT_SOURCE_DIR}/netCDFCxxConfig.cmake.in"
|
19 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/netCDFCxxConfig.cmake"
|
20 |
+
+ INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/netCDFCxx"
|
21 |
+
+ )
|
22 |
+
+
|
23 |
+
install(
|
24 |
+
FILES
|
25 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/netCDFCxxConfig.cmake"
|
26 |
+
"${CMAKE_CURRENT_BINARY_DIR}/netCDF/netCDFCxxConfigVersion.cmake"
|
27 |
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/netCDFCxx
|
28 |
+
COMPONENT headers
|
29 |
+
diff --git a/cxx4/CMakeLists.txt b/cxx4/CMakeLists.txt
|
30 |
+
index b433786..5ef4bed 100644
|
31 |
+
--- a/cxx4/CMakeLists.txt
|
32 |
+
+++ b/cxx4/CMakeLists.txt
|
33 |
+
@@ -32,7 +32,7 @@ SET(ALL_TLL_LIBS ${ALL_TLL_LIBS} ${HDF5_C_LIBRARY_hdf5})
|
34 |
+
SET(ALL_TLL_LIBS ${ALL_TLL_LIBS} ${EXTRA_DEPS} PARENT_SCOPE)
|
35 |
+
|
36 |
+
ADD_LIBRARY(netcdf-cxx4 ${CXX_SOURCES})
|
37 |
+
-TARGET_INCLUDE_DIRECTORIES(netcdf-cxx4 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
38 |
+
+TARGET_INCLUDE_DIRECTORIES(netcdf-cxx4 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)
|
39 |
+
TARGET_LINK_LIBRARIES(netcdf-cxx4 ${ALL_TLL_LIBS})
|
40 |
+
SET_TARGET_PROPERTIES(netcdf-cxx4 PROPERTIES
|
41 |
+
VERSION ${NCXX_LIB_VERSION}
|
42 |
+
@@ -49,6 +49,7 @@ INSTALL(
|
43 |
+
)
|
44 |
+
INSTALL(
|
45 |
+
TARGETS netcdf-cxx4
|
46 |
+
+ EXPORT netcdf-cxx4Targets
|
47 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
48 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
49 |
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/fix-dependecy-hdf5.patch
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 60c699d..f06fcc0 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -395,14 +395,20 @@ ENDIF(NC_HAS_DEF_VAR_FILTER)
|
6 |
+
###
|
7 |
+
# Find HDF5
|
8 |
+
###
|
9 |
+
-IF(MSVC)
|
10 |
+
+IF(0)
|
11 |
+
SET(SEARCH_PACKAGE_NAME ${HDF5_PACKAGE_NAME})
|
12 |
+
FIND_PACKAGE(HDF5 NAMES ${SEARCH_PACKAGE_NAME} COMPONENTS C HL NO_MODULES REQUIRED ${NC_HDF5_LINK_TYPE})
|
13 |
+
ELSE(MSVC)
|
14 |
+
- FIND_PACKAGE(HDF5 COMPONENTS C HL REQUIRED)
|
15 |
+
+ FIND_PACKAGE(hdf5 CONFIG REQUIRED)
|
16 |
+
+ set(HDF5_FOUND ${hdf5_FOUND})
|
17 |
+
+ if (NOT HDF5_USE_STATIC_LIBRARIES)
|
18 |
+
+ set(HDF5_C_LIBRARY_hdf5 hdf5::hdf5-shared hdf5::hdf5_hl-shared)
|
19 |
+
+ else()
|
20 |
+
+ set(HDF5_C_LIBRARY_hdf5 hdf5::hdf5-static hdf5::hdf5_hl-static)
|
21 |
+
+ endif()
|
22 |
+
ENDIF(MSVC)
|
23 |
+
|
24 |
+
-CHECK_LIBRARY_EXISTS(${HDF5_C_LIBRARY_hdf5} H5free_memory "" HAVE_H5FREE_MEMORY)
|
25 |
+
+set(HAVE_H5FREE_MEMORY ON)
|
26 |
+
IF(NOT HAVE_H5FREE_MEMORY)
|
27 |
+
MESSAGE(STATUS "Plugin support requires libhdf5 with H5Free support. Your libhdf5 install does not provide H5Free. Please install a newer version of libhdf5 if you require plugin compression support.")
|
28 |
+
SET(NC_HAS_DEF_VAR_FILTER "")
|
29 |
+
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
|
30 |
+
index 30a4a96..1809d29 100644
|
31 |
+
--- a/plugins/CMakeLists.txt
|
32 |
+
+++ b/plugins/CMakeLists.txt
|
33 |
+
@@ -23,7 +23,7 @@ SET_TARGET_PROPERTIES(test_bzip2 PROPERTIES OUTPUT_NAME "bzip2")
|
34 |
+
SET_TARGET_PROPERTIES(test_bzip2 PROPERTIES LIBRARY_OUTPUT_NAME "h5bzip2")
|
35 |
+
SET_TARGET_PROPERTIES(test_bzip2 PROPERTIES ARCHIVE_OUTPUT_NAME "h5bzip2")
|
36 |
+
SET_TARGET_PROPERTIES(test_bzip2 PROPERTIES RUNTIME_OUTPUT_NAME "h5bzip2")
|
37 |
+
-TARGET_LINK_LIBRARIES(test_bzip2 ${ALL_TLL_LIBS})
|
38 |
+
+TARGET_LINK_LIBRARIES(test_bzip2 ${ALL_TLL_LIBS} ${HDF5_C_LIBRARY_hdf5})
|
39 |
+
|
40 |
+
ADD_LIBRARY(misc MODULE ${libmisc_SOURCES})
|
41 |
+
SET_TARGET_PROPERTIES(misc PROPERTIES LIBRARY_OUTPUT_NAME "misc")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/netCDFCxxConfig.cmake.in
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# NetCDF CXX Configuration Summary
|
2 |
+
@PACKAGE_INIT@
|
3 |
+
|
4 |
+
include(CMakeFindDependencyMacro)
|
5 |
+
|
6 |
+
if (@netCDF_FOUND@)
|
7 |
+
if(EXISTS "@netCDF_ROOT@")
|
8 |
+
set(netCDF_ROOT "@netCDF_ROOT@")
|
9 |
+
endif()
|
10 |
+
if(EXISTS "@netCDF_DIR@")
|
11 |
+
set(netCDF_DIR "@netCDF_DIR@")
|
12 |
+
endif()
|
13 |
+
find_dependency(netCDF)
|
14 |
+
set(NETCDF_C_LIBRARY ${netCDF_LIBRARIES})
|
15 |
+
set(NETCDF_C_INCLUDE_DIR ${netCDF_INCLUDE_DIR})
|
16 |
+
else()
|
17 |
+
set(NETCDF_C_LIBRARY "@NETCDF_C_LIBRARY@")
|
18 |
+
set(NETCDF_C_INCLUDE_DIR "@NETCDF_C_INCLUDE_DIR@")
|
19 |
+
endif()
|
20 |
+
|
21 |
+
if (NOT TARGET netCDF::netcdf)
|
22 |
+
add_library(netCDF::netcdf UNKNOWN IMPORTED)
|
23 |
+
set_target_properties(netCDF::netcdf PROPERTIES
|
24 |
+
IMPORTED_LOCATION "${NETCDF_C_LIBRARY}"
|
25 |
+
INTERFACE_INCLUDE_DIRECTORIES "${NETCDF_C_INCLUDE_DIR}"
|
26 |
+
)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
include("${CMAKE_CURRENT_LIST_DIR}/netcdf-cxx4Targets.cmake")
|