forked from Kitware/fletch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fletch-tarballs.cmake
620 lines (551 loc) · 26 KB
/
fletch-tarballs.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
#+
# Adding a module, xxxx, to fletch is fairly straighforward.
#
# First, add a stanza to this file that defines:
# xxx_version - the version of xxx that you'll be using
# xxx_url - the url from which to download the associated tarball
# xxx_md5 - the expected md5 checksum for the tarball. cmake -E md5sum can
# be used to obtain this.
#
# At the end of the stanza for xxx, add xxx to the list
# fletch_external_sources.
#
# Then, in the CMake directory, add the file External_xxx.cmake, and write
# the ExternalProject_add command that will download, configure and build
# the package
#
# At the end of the External_xxx file, you should set any values that would
# be used by Findxxx() in order to find your build of XXX within the
# fletch build directory. You'll also need to add the appropriate
# commands to the fletchConfig.cmake file (see existing
# External_foo.cmake files for examples)
#-
# Boost
# Support 1.78.0 (Default) and 1.65.1 optionally
if (fletch_ENABLE_Boost OR fletch_ENABLE_ALL_PACKAGES)
set(Boost_SELECT_VERSION 1.78.0 CACHE STRING "Select the major version of Boost to build.")
set_property(CACHE Boost_SELECT_VERSION PROPERTY STRINGS "1.78.0" "1.65.1")
string(REGEX REPLACE "\\\." "_" Boost_version_underscore ${Boost_SELECT_VERSION})
message(STATUS "Boost Select version: ${Boost_SELECT_VERSION}")
if(Boost_SELECT_VERSION VERSION_EQUAL 1.65.1)
set(Boost_url "http://sourceforge.net/projects/boost/files/boost/${Boost_SELECT_VERSION}/boost_${Boost_version_underscore}.tar.bz2")
set(Boost_md5 "41d7542ce40e171f3f7982aff008ff0d")
elseif(Boost_SELECT_VERSION VERSION_EQUAL 1.78.0)
set(Boost_url "https://boostorg.jfrog.io/artifactory/main/release/${Boost_SELECT_VERSION}/source/boost_${Boost_version_underscore}.tar.gz")
set(Boost_md5 "c2f6428ac52b0e5a3c9b2e1d8cc832b5")
else()
message(STATUS "Boost_SELECT_VERSION: Not supported")
endif()
endif()
list(APPEND fletch_external_sources Boost)
# ZLib
set(ZLib_version 1.2.11)
set(ZLib_url "https://github.com/madler/zlib/archive/v${ZLib_version}.zip")
set(zlib_md5 "9d6a627693163bbbf3f26403a3a0b0b1")
set(zlib_dlname "zlib-${ZLib_version}.zip")
list(APPEND fletch_external_sources ZLib)
# libjpeg-turbo
set(libjpeg-turbo_version "1.4.0")
set(libjpeg-turbo_url "http://sourceforge.net/projects/libjpeg-turbo/files/libjpeg-turbo-${libjpeg-turbo_version}.tar.gz")
set(libjpeg-turbo_md5 "039153dabe61e1ac8d9323b5522b56b0")
list(APPEND fletch_external_sources libjpeg-turbo)
# libtiff
set(libtiff_version "4.1.0")
set(libtiff_url "http://download.osgeo.org/libtiff/tiff-${libtiff_version}.tar.gz")
set(libtiff_md5 "2165e7aba557463acc0664e71a3ed424")
list(APPEND fletch_external_sources libtiff)
# PNG
set(PNG_version_major 1)
set(PNG_version_minor 6)
set(PNG_version_patch 19)
set(PNG_version "${PNG_version_major}.${PNG_version_minor}.${PNG_version_patch}")
set(PNG_major_minor_no_dot "${PNG_version_major}${PNG_version_minor}")
set(PNG_version_no_dot "${PNG_major_minor_no_dot}${PNG_version_patch}")
if(WIN32)
set(PNG_url "http://sourceforge.net/projects/libpng/files/libpng${PNG_major_minor_no_dot}/older-releases/${PNG_version}/lpng${PNG_major_minor_no_dot}${PNG_version_patch}.zip")
set(PNG_md5 "ff0e82b4d8516daa7ed6b1bf93acca48")
else()
set(PNG_url "http://sourceforge.net/projects/libpng/files/libpng${PNG_major_minor_no_dot}/older-releases/${PNG_version}/libpng-${PNG_version}.tar.gz")
set(PNG_md5 "3121bdc77c365a87e054b9f859f421fe")
endif()
list(APPEND fletch_external_sources PNG)
# openjpeg
set(openjpeg_version "2.3.0")
set(openjpeg_url "https://github.com/uclouvain/openjpeg/archive/v${openjpeg_version}.tar.gz")
set(openjpeg_md5 "6a1f8aaa1fe55d2088e3a9c942e0f698")
set(openjpeg_dlname "openjpeg-v${openjpeg_version}.tar.gz")
list(APPEND fletch_external_sources openjpeg)
# YASM for building jpeg-turbo, not third party library
set(yasm_version "1.3.0")
set(yasm_url "https://github.com/yasm/yasm/archive/v1.3.0.tar.gz")
set(yasm_md5 "38802696efbc27554d75d93a84a23183")
# msys2
if(WIN32)
set(msys2_version "20220128")
set(msys2_url "https://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-${msys2_version}.tar.xz")
set(msys2_md5 "45b3be3d1e30d01e0d95d5bd8e75244a")
endif()
# x264
set(x264_version "bfc87b7a330f75f5c9a21e56081e4b20344f139e")
set(x264_url "https://code.videolan.org/videolan/x264/-/archive/${x264_version}/x264-${x264_version}.tar.bz2")
set(x264_md5 "fd71fead6422ccb5094207c9d2ad70bd")
# x265
set(x265_version "3.4")
set(x265_url "https://github.com/videolan/x265/archive/refs/tags/${x265_version}.tar.gz")
set(x265_md5 "d867c3a7e19852974cf402c6f6aeaaf3")
# FFmpeg NVidia codec headers
set(ffnvcodec_version "n11.1.5.1")
set(ffnvcodec_url "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git")
# FFmpeg
if (fletch_ENABLE_FFmpeg OR fletch_ENABLE_ALL_PACKAGES)
# allow different versions to be selected for testing purposes
set(FFmpeg_SELECT_VERSION 3.3.3 CACHE STRING "Select the version of FFmpeg to build.")
set_property(CACHE FFmpeg_SELECT_VERSION PROPERTY STRINGS "2.6.2" "3.3.3" "4.4.1" "5.1.2")
mark_as_advanced(FFmpeg_SELECT_VERSION)
set(_FFmpeg_version ${FFmpeg_SELECT_VERSION})
set(FFmpeg_url "http://www.ffmpeg.org/releases/ffmpeg-${_FFmpeg_version}.tar.gz")
if (_FFmpeg_version VERSION_EQUAL 5.1.2)
set(FFmpeg_md5 "f44232183ae1ef814eac50dd382a2d7f")
elseif (_FFmpeg_version VERSION_EQUAL 4.4.1)
set(FFmpeg_md5 "493da4b6a946b569fc65775ecde404ea")
elseif (_FFmpeg_version VERSION_EQUAL 3.3.3)
set(FFmpeg_md5 "f32df06c16bdc32579b7fcecd56e03df")
elseif (_FFmpeg_version VERSION_EQUAL 2.6.2)
set(FFmpeg_md5 "412166ef045b2f84f23e4bf38575be20")
elseif (_FFmpeg_supported AND _FFmpeg_version)
message("Unsupported FFmpeg version ${_FFmpeg_version}")
endif()
set(fletch_ENABLE_x264 ON CACHE BOOL "Include x264")
set(fletch_ENABLE_x265 ON CACHE BOOL "Include x265")
set(fletch_ENABLE_ffnvcodec ON CACHE BOOL "Include FFmpeg NVidia codec headers")
endif()
list(APPEND fletch_external_sources FFmpeg)
# EIGEN
set(Eigen_version 3.3.9)
set(Eigen_url "https://gitlab.com/libeigen/eigen/-/archive/${Eigen_version}/eigen-${Eigen_version}.tar.gz")
set(Eigen_md5 "609286804b0f79be622ccf7f9ff2b660")
set(Eigen_dlname "eigen-${Eigen_version}.tar.gz")
list(APPEND fletch_external_sources Eigen)
# log4cplus
set(log4cplus_version "2.0.x")
set(log4cplus_url "https://sourceforge.net/projects/log4cplus/files/log4cplus-stable/2.0.4/log4cplus-2.0.4.zip")
set(log4cplus_md5 "cb075cd19ce561273b1c74907cc66b6a")
set(log4cplus_dlname "log4cplus-${log4cplus_version}.zip")
list(APPEND fletch_external_sources log4cplus)
# GFlags
set(GFlags_version "2.2.1")
set(GFlags_url "https://github.com/gflags/gflags/archive/v${GFlags_version}.tar.gz")
set(GFlags_md5 "b98e772b4490c84fc5a87681973f75d1")
set(GFlags_dlname "gflags-${GFlags_version}.tar.gz")
list(APPEND fletch_external_sources GFlags)
# GLog
set(GLog_version "0.3.5")
set(GLog_url "https://github.com/google/glog/archive/v${GLog_version}.tar.gz")
set(GLog_md5 "5df6d78b81e51b90ac0ecd7ed932b0d4")
set(GLog_dlname "glog-${GLog_version}.tar.gz")
list(APPEND fletch_external_sources GLog)
set(GTest_version "1.8.1")
set(GTest_url "https://github.com/google/googletest/archive/release-${GTest_version}.tar.gz")
set(GTest_md5 "2e6fbeb6a91310a16efe181886c59596")
set(GTest_dlname "gtest-${GTest_version}.tar.gz")
list(APPEND fletch_external_sources GTest)
#OpenBLAS
if(NOT WIN32)
set(OpenBLAS_SELECT_VERSION 0.3.21 CACHE STRING "Select the version of OpenBLAS to build.")
set_property(CACHE OpenBLAS_SELECT_VERSION PROPERTY STRINGS "0.3.21" "0.3.10" "0.3.6")
set (OpenBLAS_version ${OpenBLAS_SELECT_VERSION})
if (OpenBLAS_version VERSION_EQUAL 0.3.6)
set(OpenBLAS_md5 "8a110a25b819a4b94e8a9580702b6495")
elseif (OpenBLAS_version VERSION_EQUAL 0.3.10)
set(OpenBLAS_md5 "4727a1333a380b67c8d7c7787a3d9c9a")
elseif (OpenBLAS_version VERSION_EQUAL 0.3.21)
set(OpenBLAS_md5 "ffb6120e2309a2280471716301824805")
else()
message("Unknown OpenBLAS version = ${OpenBLAS_version}")
endif()
set(OpenBLAS_url "https://github.com/xianyi/OpenBLAS/archive/v${OpenBLAS_version}.tar.gz")
set(OpenBLAS_dlname "openblas-${OpenBLAS_version}.tar.gz")
list(APPEND fletch_external_sources OpenBLAS)
endif()
#SuiteSparse
set(SuiteSparse_version 4.4.5)
set(SuiteSparse_url "http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-${SuiteSparse_version}.tar.gz")
set(SuiteSparse_md5 "a2926c27f8a5285e4a10265cc68bbc18")
list(APPEND fletch_external_sources SuiteSparse)
# Ceres Solver
set(Ceres_version 1.14.0)
set(Ceres_url "http://ceres-solver.org/ceres-solver-${Ceres_version}.tar.gz")
set(Ceres_md5 "fd9b4eba8850f0f2ede416cd821aafa5")
set(Ceres_dlname "ceres-solver-${Ceres_version}.tar.gz")
list(APPEND fletch_external_sources Ceres)
if(NOT WIN32)
set(libxml2_release "2.9")
set(libxml2_patch_version 0)
set(libxml2_url "http://xmlsoft.org/sources/libxml2-2.9.0.tar.gz")
set(libxml2_md5 "5b9bebf4f5d2200ae2c4efe8fa6103f7")
list(APPEND fletch_external_sources libxml2)
endif()
# jom
if(WIN32)
# this is only used by the Qt external project to speed builds
set(jom_version 1_0_16)
set(jom_url "http://download.qt.io/official_releases/jom/jom_${jom_version}.zip")
set(jom_md5 "a021066aefcea8999b382b1c7c12165e")
endif()
# libjson
set(libjson_version_major 7)
set(libjson_version_minor 6)
set(libjson_version_patch 1)
set(libjson_version "${libjson_version_major}.${libjson_version_minor}.${libjson_version_patch}")
set(libjson_url "http://sourceforge.net/projects/libjson/files/libjson_${libjson_version}.zip")
set(libjson_md5 "82f3fcbf9f8cf3c4e25e1bdd77d65164")
list(APPEND fletch_external_sources libjson)
# shapelib
set(shapelib_version 1.4.1)
set(shapelib_url "http://download.osgeo.org/shapelib/shapelib-${shapelib_version}.tar.gz")
set(shapelib_md5 "ae9f1fcd2adda35b74ac4da8674a3178")
list(APPEND fletch_external_sources shapelib)
# TinyXML_1
set(TinyXML1_version_major "2")
set(TinyXML1_version_minor "6")
set(TinyXML1_version_patch "2")
set(TinyXML1_url "http://sourceforge.net/projects/tinyxml/files/tinyxml_${TinyXML1_version_major}_${TinyXML1_version_minor}_${TinyXML1_version_patch}.zip")
set(TinyXML1_md5 "2a0aaf609c9e670ec9748cd01ed52dae")
set(TinyXML1_dlname "tinyXML1.zip")
list(APPEND fletch_external_sources TinyXML1)
# TinyXML_2
set(TinyXML2_version_major "7")
set(TinyXML2_version_minor "0")
set(TinyXML2_version_patch "1")
set(TinyXML2_url "https://github.com/leethomason/tinyxml2/archive/${TinyXML2_version_major}.${TinyXML2_version_minor}.${TinyXML2_version_patch}.zip")
set(TinyXML2_md5 "03ad292c4b6454702c0cc22de0d196ad")
set(TinyXML2_dlname "tinyXML2.zip")
list(APPEND fletch_external_sources TinyXML2)
# libkml
set(libkml_version "20150911git79b3eb0")
set(libkml_tag "79b3eb066eacd8fb117b10dc990b53b4cd11f33d")
set(libkml_url "https://github.com/kitware/libkml/archive/${libkml_tag}.zip")
set(libkml_md5 "a232dfd4eb07489768b207d88b983267")
set(libkml_dlname "libkml-${libkml_version}.zip")
list(APPEND fletch_external_sources libkml)
# Qt
# Support 4.8.6 and 5.11 optionally
if (fletch_ENABLE_Qt OR fletch_ENABLE_VTK OR fletch_ENABLE_qtExtensions OR
fletch_ENABLE_ALL_PACKAGES)
set(Qt_SELECT_VERSION 5.11.2 CACHE STRING "Select the version of Qt to build.")
set_property(CACHE Qt_SELECT_VERSION PROPERTY STRINGS "4.8.6" "5.11.2" "5.12.8")
set(Qt_version ${Qt_SELECT_VERSION})
string(REPLACE "." ";" Qt_VERSION_LIST ${Qt_version})
list(GET Qt_VERSION_LIST 0 Qt_version_major)
list(GET Qt_VERSION_LIST 1 Qt_version_minor)
list(GET Qt_VERSION_LIST 2 Qt_version_patch)
set(Qt_release_location new_archive) # official_releases or new_archive
if (Qt_version VERSION_EQUAL 5.11.2)
set(Qt_url "https://data.kitware.com/api/v1/file/600f0f492fa25629b91171ed/download/qt-everywhere-src-5.11.2.tar.xz")
set(Qt_md5 "152a8ade9c11fe33ff5bc95310a1bb64")
elseif (Qt_version VERSION_EQUAL 5.12.8)
set(Qt_release_location archive) # official_releases or new_archive
set(Qt_url "https://download.qt.io/${Qt_release_location}/qt/5.12/${Qt_version}/single/qt-everywhere-src-${Qt_version}.tar.xz")
set(Qt_md5 "8ec2a0458f3b8e9c995b03df05e006e4")
elseif (Qt_version VERSION_EQUAL 4.8.6)
set(Qt_release_location new_archive)
set(Qt_url "https://data.kitware.com/api/v1/file/600f20782fa25629b9119696/download/qt-everywhere-opensource-src-4.8.6.tar.gz")
set(Qt_md5 "2edbe4d6c2eff33ef91732602f3518eb")
else()
message(ERROR "Qt Version \"${Qt_version}\" Not Supported")
endif()
endif()
list(APPEND fletch_external_sources Qt)
# OpenCV
# Support 3.4, 4.2, and 4.5.1 optionally
if (fletch_ENABLE_OpenCV OR fletch_ENABLE_ALL_PACKAGES OR AUTO_ENABLE_CAFFE_DEPENDENCY)
set(OpenCV_SELECT_VERSION 3.4.0 CACHE STRING "Select the version of OpenCV to build.")
set_property(CACHE OpenCV_SELECT_VERSION PROPERTY STRINGS "3.4.0" "4.2.0" "4.5.1")
set(OpenCV_version ${OpenCV_SELECT_VERSION})
# Pulling from pypi for version 4.5.1
if (OpenCV_SELECT_VERSION VERSION_EQUAL 4.5.1 AND fletch_USE_PYPI_OPENCV)
set(OpenCV_url "https://files.pythonhosted.org/packages/bb/08/9dbc183a3ac6baa95fabf749ddb531bd26256edfff5b6c2195eca26258e9/opencv-python-4.5.1.48.tar.gz")
set(OpenCV_dlname "opencv-python-4.5.1.48.tar.gz")
else()
set(OpenCV_url "https://github.com/opencv/opencv/archive/${OpenCV_version}.zip")
set(OpenCV_dlname "opencv-${OpenCV_version}.zip")
endif()
# Expose optional contrib repo when enabling OpenCV version >= 3.x
if (NOT OpenCV_SELECT_VERSION VERSION_LESS 3.0.0 )
list(APPEND fletch_external_sources OpenCV_contrib)
set(OpenCV_contrib_version "${OpenCV_version}")
set(OpenCV_contrib_url "http://github.com/Itseez/opencv_contrib/archive/${OpenCV_contrib_version}.zip")
set(OpenCV_contrib_dlname "opencv-contrib-${OpenCV_version}.zip")
else()
# Remove Contrib repo option when OpenCV is not the correct version
unset(fletch_ENABLE_OpenCV_contrib CACHE)
endif()
# Paired contrib repo information
if (OpenCV_version VERSION_EQUAL 4.5.1)
if (fletch_USE_PYPI_OPENCV)
set(OpenCV_md5 "0e178bd601b25a0a1ee0cd1e8c81bec0")
else()
set(OpenCV_md5 "cc13d83c3bf989b0487bb3798375ee08")
endif()
set(OpenCV_contrib_md5 "ddb4f64d6cf31d589a8104655d39c99b")
elseif (OpenCV_version VERSION_EQUAL 4.2.0)
set(OpenCV_md5 "b02b54115f1f99cb9e885d1e5988ff70")
set(OpenCV_contrib_md5 "4776354662667c85a91bcd19f6a13da7")
elseif (OpenCV_version VERSION_EQUAL 3.4.0)
set(OpenCV_md5 "ed60f8bbe7a448f325d0a0f58fcf2063")
set(OpenCV_contrib_md5 "92c09ce6c837329f05802a8d17136148")
else()
message(ERROR " OpenCV Version \"${OpenCV_version}\" Not Supported")
endif()
else()
# Remove Contrib repo option when OpenCV is not enabled
unset(fletch_ENABLE_OpenCV_contrib CACHE)
endif()
list(APPEND fletch_external_sources OpenCV)
# SQLite3
set(SQLite3_version 3350200)
set(SQLite3_url "https://www.sqlite.org/2021/sqlite-amalgamation-${SQLite3_version}.zip")
set(SQLite3_md5 "732c5d0758a2a2fb9e5b9d6224141a01")
list(APPEND fletch_external_sources SQLite3)
# PROJ
if (fletch_ENABLE_PROJ4)
message(WARNING "The package name PROJ4 is deprecated. Use PROJ instead.")
set(fletch_ENABLE_PROJ ON)
endif()
set(PROJ_version "6.3.2" )
set(PROJ_url "http://download.osgeo.org/proj/proj-${PROJ_version}.tar.gz" )
set(PROJ_md5 "2ca6366e12cd9d34d73b4602049ee480" )
list(APPEND fletch_external_sources PROJ )
# libgeotiff
set(libgeotiff_version "1.6.0")
set(libgeotiff_url "http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-${libgeotiff_version}.zip")
set(libgeotiff_md5 "c72c682c5972a5cf8c3f655567761a17")
list(APPEND fletch_external_sources libgeotiff)
# GEOS
set(GEOS_version "3.6.2" )
set(GEOS_url "http://download.osgeo.org/geos/geos-${GEOS_version}.tar.bz2" )
set(GEOS_md5 "a32142343c93d3bf151f73db3baa651f" )
list(APPEND fletch_external_sources GEOS )
# GDAL
if (fletch_ENABLE_GDAL OR fletch_ENABLE_ALL_PACKAGES)
set(GDAL_SELECT_VERSION 2.4.4 CACHE STRING "Select the major version of GDAL to build.")
set_property(CACHE GDAL_SELECT_VERSION PROPERTY STRINGS "2.4.4" "2.3.2" "1.11.5")
message(STATUS "GDAL Select version: ${GDAL_SELECT_VERSION}")
if (GDAL_SELECT_VERSION VERSION_EQUAL 2.4.4)
set(GDAL_version "2.4.4")
set(GDAL_url "http://download.osgeo.org/gdal/${GDAL_version}/gdal-${GDAL_version}.tar.gz")
set(GDAL_md5 "dc676d06eda38fb1006dcf5490128a1d")
elseif (GDAL_SELECT_VERSION VERSION_EQUAL 2.3.2)
set(GDAL_version "2.3.2")
set(GDAL_url "http://download.osgeo.org/gdal/${GDAL_version}/gdal-${GDAL_version}.tar.gz")
set(GDAL_md5 "221e4bfe3e8e9443fd33f8fe46f8bf60")
elseif(GDAL_SELECT_VERSION VERSION_EQUAL 1.11.5)
set(GDAL_version "1.11.5")
set(GDAL_url "http://download.osgeo.org/gdal/${GDAL_version}/gdal-${GDAL_version}.tar.gz")
set(GDAL_md5 "879fa140f093a2125f71e38502bdf714")
else()
message(STATUS "GDAL_SELECT_VERSION ${GDAL_SELECT_VERSION}: Not supported")
endif()
endif()
list(APPEND fletch_external_sources GDAL)
# PDAL
set(PDAL_version 1.7.2)
set(PDAL_url "https://github.com/PDAL/PDAL/releases/download/${PDAL_version}/PDAL-${PDAL_version}-src.tar.gz")
set(PDAL_md5 "a89710005fd54e6d2436955e2e542838")
list(APPEND fletch_external_sources PDAL)
# GeographicLib
set(GeographicLib_version "1.49" )
set(GeographicLib_url "http://sourceforge.net/projects/geographiclib/files/distrib/GeographicLib-${GeographicLib_version}.tar.gz" )
set(GeographicLib_md5 "11300e88b4a38692b6a8712d5eafd4d7" )
list(APPEND fletch_external_sources GeographicLib )
# PostgreSQL
if (fletch_ENABLE_PostgreSQL OR fletch_ENABLE_ALL_PACKAGES)
set(PostgreSQL_SELECT_VERSION 9.5.1 CACHE STRING "Select the major version of PostgreSQL to build.")
set_property(CACHE PostgreSQL_SELECT_VERSION PROPERTY STRINGS "9.5.1" "10.2")
message(STATUS "PostgreSQL Select version: ${PostgreSQL_SELECT_VERSION}")
if (PostgreSQL_SELECT_VERSION VERSION_EQUAL 9.5.1)
# PostgreSQL 9.5
set(PostgreSQL_version ${PostgreSQL_SELECT_VERSION})
set(PostgreSQL_url "http://ftp.PostgreSQL.org/pub/source/v${PostgreSQL_version}/postgresql-${PostgreSQL_version}.tar.bz2")
set(PostgreSQL_md5 "11e037afaa4bd0c90bb3c3d955e2b401")
elseif(PostgreSQL_SELECT_VERSION VERSION_EQUAL 10.2)
# PostgreSQL 9.4
set(PostgreSQL_version ${PostgreSQL_SELECT_VERSION})
set(PostgreSQL_url "http://ftp.PostgreSQL.org/pub/source/v${PostgreSQL_version}/postgresql-${PostgreSQL_version}.tar.bz2")
set(PostgreSQL_md5 "e97c3cc72bdf661441f29069299b260a")
else()
message(STATUS "PostgreSQL_SELECT_VERSION: Not supported")
endif()
endif()
list(APPEND fletch_external_sources PostgreSQL)
# PostGIS
# Currently it seems the this version of PostGIS will work with all provided PostgreSQL versions
if(NOT WIN32)
set(PostGIS_version "2.5.3" )
set(PostGIS_url "http://download.osgeo.org/postgis/source/postgis-${PostGIS_version}.tar.gz" )
set(PostGIS_md5 "475bca6249ee11f675b899de14fd3f42" )
list(APPEND fletch_external_sources PostGIS )
endif()
# CPPDB
set(CppDB_version "0.3.0" )
set(CppDB_url "https://sourceforge.net/projects/cppcms/files/cppdb/${CppDB_version}/cppdb-${CppDB_version}.tar.bz2" )
set(CppDB_md5 "091d1959e70d82d62a04118827732dfe")
list(APPEND fletch_external_sources CppDB)
# VTK
if (fletch_ENABLE_VTK OR fletch_ENABLE_ALL_PACKAGES)
set(VTK_SELECT_VERSION 9.1 CACHE STRING "Select the version of VTK to build.")
set_property(CACHE VTK_SELECT_VERSION PROPERTY STRINGS 8.0 8.2 9.0 9.1)
endif()
if (VTK_SELECT_VERSION VERSION_EQUAL 9.1)
set(VTK_version 9.1.0)
set(VTK_md5 "96508e51d7c3764cd5aba06fffd9864e")
elseif (VTK_SELECT_VERSION VERSION_EQUAL 9.0)
set(VTK_version 9.0.1)
set(VTK_md5 "b3ba14d616c3b23583c42cffb585deac")
elseif (VTK_SELECT_VERSION VERSION_EQUAL 8.2)
set(VTK_version 8.2.0)
set(VTK_md5 "8af3307da0fc2ef8cafe4a312b821111")
elseif (VTK_SELECT_VERSION VERSION_EQUAL 8.0)
set(VTK_version 8.0.1)
set(VTK_md5 "692d09ae8fadc97b59d35cab429b261a") # v8.0.1
elseif (fletch_ENABLE_VTK OR fletch_ENABLE_ALL_PACKAGES)
message(ERROR "VTK Version ${VTK_SELECT_VERSION} Not Supported")
endif()
set(VTK_url "http://www.vtk.org/files/release/${VTK_SELECT_VERSION}/VTK-${VTK_version}.tar.gz")
list(APPEND fletch_external_sources VTK)
# VXL
set(VXL_version "0bb0ca92867408caec298cef05412ed85c6d56b7")
set(VXL_url "https://github.com/vxl/vxl/archive/${VXL_version}.zip")
set(VXL_md5 "287536149942081666a2f9a3be87a666")
set(VXL_dlname "vxl-${VXL_version}.zip")
list(APPEND fletch_external_sources VXL)
# ITK
set(ITK_version 5.0)
set(ITK_minor b01)
set(ITK_url "https://github.com/InsightSoftwareConsortium/ITK/archive/v${ITK_version}${ITK_minor}.zip")
set(ITK_md5 "3a93ba69d3bf05258054806fab742611")
set(ITK_experimental TRUE)
list(APPEND fletch_external_sources ITK)
# LMDB
if(NOT WIN32)
set(LMDB_version "0.9.16")
set(LMDB_url "https://github.com/LMDB/lmdb/archive/LMDB_${LMDB_version}.tar.gz")
set(LMDB_md5 "0de89730b8f3f5711c2b3a4ba517b648")
list(APPEND fletch_external_sources LMDB)
endif()
# HDF5
if (fletch_ENABLE_HDF5 OR fletch_ENABLE_ALL_PACKAGES)
set(HDF5_SELECT_VERSION 1.12.0 CACHE STRING "Select the major version of HDF5 to build.")
set_property(CACHE HDF5_SELECT_VERSION PROPERTY STRINGS "1.12.0" "1.8.17")
if (HDF5_SELECT_VERSION VERSION_EQUAL 1.12.0)
set(HDF5_major "1")
set(HDF5_minor "12")
set(HDF5_rev "0")
set(HDF5_version_string "${HDF5_major}_${HDF5_minor}_${HDF5_rev}")
set(HDF5_md5 "7181d12d1940b725248046077a849f54")
elseif(HDF5_SELECT_VERSION VERSION_EQUAL 1.8.17)
set(HDF5_major "1")
set(HDF5_minor "8")
set(HDF5_rev "17")
set(HDF5_version_string "${HDF5_major}_${HDF5_minor}_${HDF5_rev}")
set(HDF5_md5 "3ff8830763b0356408e1d454628fa25e")
else()
message(ERROR "HDF5 Version ${HDF5_SELECT_VERSION} Not Supported")
endif()
set(HDF5_url "https://github.com/HDFGroup/hdf5/archive/hdf5-${HDF5_version_string}.tar.gz")
set(HDF5_dlname "hdf5-${HDF5_version_string}.tar.gz")
endif()
list(APPEND fletch_external_sources HDF5)
# SNAPPY
if(NOT WIN32)
set(Snappy_version "1.1.3")
set(Snappy_url "https://github.com/google/snappy/releases/download/1.1.3/snappy-${Snappy_version}.tar.gz")
set(Snappy_md5 "7358c82f133dc77798e4c2062a749b73")
list(APPEND fletch_external_sources Snappy)
endif()
# LevelDB
if(NOT WIN32)
set(LevelDB_version "1.19")
set(LevelDB_url "https://github.com/google/leveldb/archive/v${LevelDB_version}.tar.gz")
set(LevelDB_md5 "6c201409cce6b711f46d68e0f4b1090a")
set(LevelDB_dlname "leveldb-${LevelDB_version}.tar.gz")
list(APPEND fletch_external_sources LevelDB)
endif()
# Protobuf
if(NOT WIN32)
if (fletch_ENABLE_Protobuf OR fletch_ENABLE_ALL_PACKAGES OR AUTO_ENABLE_CAFFE_DEPENDENCY)
set(Protobuf_SELECT_VERSION "3.4.1" CACHE STRING "Select the version of ProtoBuf to build.")
set_property(CACHE Protobuf_SELECT_VERSION PROPERTY STRINGS "2.5.0" "3.4.1")
endif()
set(Protobuf_version ${Protobuf_SELECT_VERSION})
if (Protobuf_version VERSION_EQUAL 2.5.0)
set(Protobuf_url "https://github.com/google/protobuf/releases/download/v${Protobuf_version}/protobuf-${Protobuf_version}.tar.bz2" )
set(Protobuf_md5 "a72001a9067a4c2c4e0e836d0f92ece4" )
elseif (Protobuf_version VERSION_EQUAL 3.4.1)
set(Protobuf_url "https://github.com/google/protobuf/releases/download/v${Protobuf_version}/protobuf-cpp-${Protobuf_version}.tar.gz" )
set(Protobuf_md5 "74446d310ce79cf20bab3ffd0e8f8f8f" )
elseif(Protobuf_version)
message(ERROR "Protobuf Version ${Protobuf_version} Not Supported")
endif()
list(APPEND fletch_external_sources Protobuf )
endif()
# Darknet
# The Darket package used is a fork maintained by kitware that uses CMake and supports building/running on windows
set(Darknet_url "https://gitlab.kitware.com/kwiver/darknet/-/archive/master/darknet-master.zip")
set(Darknet_md5 "5dd51e1965848b5186c08ddab2414489")
set(Darnet_dlname "darknent-d206b6da7af1f4.zip")
list(APPEND fletch_external_sources Darknet)
# pybind11
set(pybind11_version "2.5.0")
set(pybind11_url "https://github.com/pybind/pybind11/archive/v${pybind11_version}.tar.gz")
set(pybind11_md5 "1ad2c611378fb440e8550a7eb6b31b89")
set(pybind11_dlname "pybind11-${pybind11_version}.tar.gz")
list(APPEND fletch_external_sources pybind11)
# YAMLcpp
set(YAMLcpp_version "0.7.0")
set(YAMLcpp_url "https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-${YAMLcpp_version}.tar.gz")
set(YAMLcpp_md5 "74d646a3cc1b5d519829441db96744f0")
set(YAMLcpp_dlname "yaml-cpp-release-${YAMLcpp_version}.tar.gz")
list(APPEND fletch_external_sources YAMLcpp)
# qtExtensions
set(qtExtensions_SELECT_VERSION latest CACHE STRING "Select the version of qtExtensions to build.")
set_property(CACHE qtExtensions_SELECT_VERSION PROPERTY STRINGS "20200330" "latest")
if(fletch_ENABLE_qtExtensions OR fletch_ENABLE_ALL_PACKAGES)
if(qtExtensions_SELECT_VERSION STREQUAL "latest")
if (Qt_version VERSION_LESS 5.10)
message(ERROR "qtExtensions 'latest' does not support Qt Version \"${Qt_version}\"")
endif()
set(qtExtensions_version "20210309git0ff5b486")
set(qtExtensions_tag "0ff5b486f08435c8cdfbc9f05d2f104f63b16aed")
set(qtExtensions_md5 "772d97e455961fb0462d658411ef8be6")
else()
set(qtExtensions_version "20200330gitb2848e06")
set(qtExtensions_tag "b2848e06ebba4c39dc63caa2363abc50db75f9d9")
set(qtExtensions_md5 "24bef5cdaac9d9f0615564b6188a07e5")
endif()
set(qtExtensions_url "https://github.com/Kitware/qtextensions/archive/${qtExtensions_tag}.tar.gz")
set(qtExtensions_dlname "qtExtensions-${qtExtensions_version}.tar.gz")
endif()
list(APPEND fletch_external_sources qtExtensions)
# ZeroMQ
set(ZeroMQ_version "4.2.5")
set(ZeroMQ_url "https://github.com/zeromq/libzmq/archive/v${ZeroMQ_version}.tar.gz")
set(ZeroMQ_md5 "da43d89dac623d99909fb95e2725fe05")
set(ZeroMQ_dlname "ZeroMQ-v${ZeroMQ_version}.tar.gz")
list(APPEND fletch_external_sources ZeroMQ)
# CPP ZeroMQ header
set(cppzmq_version "4.2.3")
set(cppzmq_url "https://github.com/zeromq/cppzmq/archive/v${cppzmq_version}.zip")
set(cppzmq_md5 "f5a2ef3a4d47522fcb261171eb7ecfc4")
set(cppzmq_dlname "cppzmq-v${cppzmq_version}.zip")
list(APPEND fletch_external_sources cppzmq)
#+
# Iterate through our sources, create local filenames and set up the "ENABLE"
# options
#-
set(fletch_files )
foreach(source ${fletch_external_sources})
# Set up the ENABLE option for the package
option(fletch_ENABLE_${source} "Include ${source} version ${${source}_version}")
set(${source}_file ${${source}_url})
endforeach()