Revision: 77581
http://sourceforge.net/p/brlcad/code/77581
Author: starseeker
Date: 2020-10-23 02:35:22 +0000 (Fri, 23 Oct 2020)
Log Message:
-----------
Add in the remaining ExternalProject control files that will trigger the
individual builds and define the imported targets.
Added Paths:
-----------
brlcad/branches/extbuild/src/other/ext/bson.cmake
brlcad/branches/extbuild/src/other/ext/gdal.cmake
brlcad/branches/extbuild/src/other/ext/itcl.cmake
brlcad/branches/extbuild/src/other/ext/itk.cmake
brlcad/branches/extbuild/src/other/ext/iwidgets.cmake
brlcad/branches/extbuild/src/other/ext/netpbm.cmake
brlcad/branches/extbuild/src/other/ext/perplex.cmake
brlcad/branches/extbuild/src/other/ext/proj4.cmake
brlcad/branches/extbuild/src/other/ext/regex.cmake
brlcad/branches/extbuild/src/other/ext/stepcode.cmake
brlcad/branches/extbuild/src/other/ext/zlib.cmake
Added: brlcad/branches/extbuild/src/other/ext/bson.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/bson.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/bson.cmake 2020-10-23 02:35:22 UTC
(rev 77581)
@@ -0,0 +1,94 @@
+# For testing
+# set(BRLCAD_ENABLE_BINARY_ATTRIBUTES ON)
+set(libbson_DESCRIPTION "
+Option for enabling and disabling compilation of the Libbson library
+provided with BRL-CAD's source code. Default is BUNDLED, using
+the included other/src version.
+")
+THIRD_PARTY(bson BSON Libbson
+ libbson_DESCRIPTION
+ ALIASES ENABLE_BSON
+ REQUIRED_VARS BRLCAD_ENABLE_BINARY_ATTRIBUTES
+ FLAGS NOSYS UNDOCUMENTED
+ RESET_VARS BSON_LIBRARY BSON_INCLUDE_DIR
+ )
+
+if (BRLCAD_BSON_BUILD)
+
+ set(BSON_MAJOR_VERSION 1)
+ set(BSON_MINOR_VERSION 3)
+ set(BSON_PATCH_VERSION 5)
+ set(BSON_VERSION
${BSON_MAJOR_VERSION}.${BSON_MINOR_VERSION}.${BSON_PATCH_VERSION})
+
+ if (MSVC)
+ set(BSON_BASENAME bson-1.0)
+ set(BSON_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
+ else (MSVC)
+ set(BSON_BASENAME libbson-1.0)
+ set(BSON_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX}.${BSON_VERSION})
+ endif (MSVC)
+
+ ExternalProject_Add(BSON_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/bson"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DLIB_DIR=${LIB_DIR} -DBIN_DIR=${BIN_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH}
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
+ )
+
+ # Tell the parent build about files and libraries
+ ExternalProject_Target(SHARED bson BSON_BLD
+ ${BSON_BASENAME}${BSON_SUFFIX}
+ SYMLINKS
"${BSON_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX};${BSON_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.${BSON_MAJOR_VERSION}"
+ LINK_TARGET ${BSON_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
+ RPATH
+ )
+ ExternalProject_Target(STATIC bson-static BSON_BLD
+ ${BSON_BASENAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+
+ ExternalProject_ByProducts(bson BSON_BLD ${BSON_INSTDIR} ${INCLUDE_DIR}
+ libbson-1.0/bson-endian.h
+ libbson-1.0/bson-md5.h
+ libbson-1.0/bson-value.h
+ libbson-1.0/bson-stdint.h
+ libbson-1.0/bson-reader.h
+ libbson-1.0/bson-context.h
+ libbson-1.0/bson-string.h
+ libbson-1.0/bson-error.h
+ libbson-1.0/bson-macros.h
+ libbson-1.0/bson-compat.h
+ libbson-1.0/bson-version.h
+ libbson-1.0/bson-oid.h
+ libbson-1.0/bson-version-functions.h
+ libbson-1.0/bson-iter.h
+ libbson-1.0/bson-stdint-win32.h
+ libbson-1.0/bson-atomic.h
+ libbson-1.0/bson-memory.h
+ libbson-1.0/bcon.h
+ libbson-1.0/bson-json.h
+ libbson-1.0/bson-keys.h
+ libbson-1.0/bson-utf8.h
+ libbson-1.0/bson-types.h
+ libbson-1.0/bson.h
+ libbson-1.0/bson-writer.h
+ libbson-1.0/bson-config.h
+ libbson-1.0/bson-clock.h
+ )
+
+ list(APPEND BRLCAD_DEPS BSON_BLD)
+
+ set(BSON_LIBRARIES bson CACHE STRING "Building bundled libbson" FORCE)
+ set(BSON_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/${INCLUDE_DIR}" CACHE STRING
"Directory containing bson headers." FORCE)
+
+ SetTargetFolder(BSON_BLD "Third Party Libraries")
+ SetTargetFolder(bson "Third Party Libraries")
+
+endif (BRLCAD_BSON_BUILD)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/bson.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/gdal.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/gdal.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/gdal.cmake 2020-10-23 02:35:22 UTC
(rev 77581)
@@ -0,0 +1,204 @@
+set(gdal_DESCRIPTION "
+Option for enabling and disabling compilation of the GDAL geographic
+library provided with BRL-CAD's source code. Default
+is AUTO, responsive to the toplevel BRLCAD_BUNDLED_LIBS option and
+testing first for a system version if BRLCAD_BUNDLED_LIBS is also
+AUTO.
+")
+THIRD_PARTY(gdal GDAL gdal
+ gdal_DESCRIPTION
+ REQUIRED_VARS "BRLCAD_ENABLE_GDAL;BRLCAD_LEVEL2"
+ ALIASES ENABLE_GDAL
+ RESET_VARS GDAL_LIBRARY GDAL_LIBRARIES GDAL_INCLUDE_DIR GDAL_INCLUDE_DIRS
+ )
+
+if (BRLCAD_GDAL_BUILD)
+
+ if (MSVC)
+ set(GDAL_BASENAME gdal)
+ else (MSVC)
+ set(GDAL_BASENAME libgdal)
+ endif (MSVC)
+
+ set(GDAL_DEPS)
+ set(TARGET_LIST zlib png proj)
+ foreach(T ${TARGET_LIST})
+ if (TARGET ${T}_stage)
+ list(APPEND GDAL_DEPS ${T}_stage)
+ endif (TARGET ${T}_stage)
+ endforeach(T ${TARGET_LIST})
+
+ if (TARGET ZLIB_BLD)
+ set(ZLIB_TARGET ZLIB_BLD)
+ endif (TARGET ZLIB_BLD)
+
+ if (TARGET PNG_BLD)
+ set(PNG_TARGET PNG_BLD)
+ endif (TARGET PNG_BLD)
+
+ set(GDAL_INSTDIR ${CMAKE_BINARY_ROOT}/ext/gdal)
+
+ if (MSVC)
+ set(ZLIB_LIBRARY ${CMAKE_BINARY_ROOT}/${LIB_DIR}/${ZLIB_BASENAME}.lib)
+ set(PNG_LIBRARY ${CMAKE_BINARY_ROOT}/${LIB_DIR}/${PNG_BASENAME}.lib)
+ else (MSVC)
+ set(ZLIB_LIBRARY
${CMAKE_BINARY_ROOT}/${LIB_DIR}/${ZLIB_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
+ set(PNG_LIBRARY
${CMAKE_BINARY_ROOT}/${LIB_DIR}/${PNG_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
+ endif (MSVC)
+
+ ExternalProject_Add(GDAL_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/gdal"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${GDAL_INSTDIR} -DLIB_DIR=${LIB_DIR}
-DBIN_DIR=${BIN_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH}
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
+ -DZLIB_ROOT=${CMAKE_BINARY_ROOT}
+ -DZLIB_LIBRARY=$<$<BOOL:${ZLIB_TARGET}>:${ZLIB_LIBRARY}>
+ -DPNG_ROOT=${CMAKE_BINARY_ROOT}
+ -DPNG_LIBRARY=$<$<BOOL:${PNG_TARGET}>:${PNG_LIBRARY}>
+ -DPROJ4_ROOT=${CMAKE_BINARY_ROOT}
+ -DGDAL_INST_DATA_DIR=${CMAKE_INSTALL_PREFIX}/${DATA_DIR}/gdal
+ DEPENDS ${GDAL_DEPS}
+ )
+
+ # Tell the parent build about files and libraries
+ ExternalProject_Target(SHARED gdal GDAL_BLD ${GDAL_INSTDIR}
+ ${GDAL_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
+ RPATH
+ )
+ ExternalProject_Target(STATIC gdal-static GDAL_BLD ${GDAL_INSTDIR}
+ ${GDAL_BASENAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+
+ set(GDAL_EXECUTABLES gdalinfo gdallocationinfo gdal_translate gdaltransform
gdaldem gdalwarp gdalbuildvrt)
+ foreach(GDALEXEC ${GDAL_EXECUTABLES})
+ ExternalProject_Target(EXEC ${GDALEXEC}_exe GDAL_BLD ${GDAL_INSTDIR}
+ ${GDALEXEC}${CMAKE_EXECUTABLE_SUFFIX}
+ RPATH
+ )
+ endforeach(GDALEXEC ${GDAL_EXECUTABLES})
+ ExternalProject_ByProducts(gdal GDAL_BLD ${GDAL_INSTDIR} ${DATA_DIR}/gdal
+ LICENSE.TXT
+ GDALLogoBW.svg
+ GDALLogoColor.svg
+ GDALLogoGS.svg
+ compdcs.csv
+ coordinate_axis.csv
+ cubewerx_extra.wkt
+ datum_shift.csv
+ default.rsc
+ ecw_cs.wkt
+ ellipsoid.csv
+ epsg.wkt
+ esri_StatePlane_extra.wkt
+ esri_Wisconsin_extra.wkt
+ esri_extra.wkt
+ gcs.csv
+ gcs.override.csv
+ gdal_datum.csv
+ gdalicon.png
+ gdalvrt.xsd
+ geoccs.csv
+ gml_registry.xml
+ gmlasconf.xml
+ gmlasconf.xsd
+ gt_datum.csv
+ gt_ellips.csv
+ header.dxf
+ inspire_cp_BasicPropertyUnit.gfs
+ inspire_cp_CadastralBoundary.gfs
+ inspire_cp_CadastralParcel.gfs
+ inspire_cp_CadastralZoning.gfs
+ jpfgdgml_AdmArea.gfs
+ jpfgdgml_AdmBdry.gfs
+ jpfgdgml_AdmPt.gfs
+ jpfgdgml_BldA.gfs
+ jpfgdgml_BldL.gfs
+ jpfgdgml_Cntr.gfs
+ jpfgdgml_CommBdry.gfs
+ jpfgdgml_CommPt.gfs
+ jpfgdgml_Cstline.gfs
+ jpfgdgml_ElevPt.gfs
+ jpfgdgml_GCP.gfs
+ jpfgdgml_LeveeEdge.gfs
+ jpfgdgml_RailCL.gfs
+ jpfgdgml_RdASL.gfs
+ jpfgdgml_RdArea.gfs
+ jpfgdgml_RdCompt.gfs
+ jpfgdgml_RdEdg.gfs
+ jpfgdgml_RdMgtBdry.gfs
+ jpfgdgml_RdSgmtA.gfs
+ jpfgdgml_RvrMgtBdry.gfs
+ jpfgdgml_SBAPt.gfs
+ jpfgdgml_SBArea.gfs
+ jpfgdgml_SBBdry.gfs
+ jpfgdgml_WA.gfs
+ jpfgdgml_WL.gfs
+ jpfgdgml_WStrA.gfs
+ jpfgdgml_WStrL.gfs
+ netcdf_config.xsd
+ nitf_spec.xml
+ nitf_spec.xsd
+ ogrvrt.xsd
+ osmconf.ini
+ ozi_datum.csv
+ ozi_ellips.csv
+ pci_datum.txt
+ pci_ellips.txt
+ pcs.csv
+ pcs.override.csv
+ plscenesconf.json
+ prime_meridian.csv
+ projop_wparm.csv
+ ruian_vf_ob_v1.gfs
+ ruian_vf_st_uvoh_v1.gfs
+ ruian_vf_st_v1.gfs
+ ruian_vf_v1.gfs
+ s57agencies.csv
+ s57attributes.csv
+ s57expectedinput.csv
+ s57objectclasses.csv
+ seed_2d.dgn
+ seed_3d.dgn
+ stateplane.csv
+ trailer.dxf
+ unit_of_measure.csv
+ vdv452.xml
+ vdv452.xsd
+ vertcs.csv
+ vertcs.override.csv
+ )
+
+ ExternalProject_ByProducts(gdal GDAL_BLD ${GDAL_INSTDIR} ${INCLUDE_DIR}/gdal
+ NOINSTALL
+ cpl_config.h
+ )
+ set(SYS_INCLUDE_PATTERNS ${SYS_INCLUDE_PATTERNS} gdal CACHE STRING "Bundled
system include dirs" FORCE)
+
+ set(GDAL_LIBRARY gdal CACHE STRING "Building bundled gdal" FORCE)
+ set(GDAL_LIBRARIES gdal CACHE STRING "Building bundled gdal" FORCE)
+
+ set(GDAL_INCLUDE_DIR
+ "${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/gdal"
+ "${BRLCAD_SOURCE_DIR}/src/superbuild/gdal/port"
+ "${BRLCAD_SOURCE_DIR}/src/superbuild/gdal/gcore"
+ "${BRLCAD_SOURCE_DIR}/src/superbuild/gdal/alg"
+ "${BRLCAD_SOURCE_DIR}/src/superbuild/gdal/ogr"
+ "${BRLCAD_SOURCE_DIR}/src/superbuild/gdal/ogr/ogrsf_frmts"
+ "${BRLCAD_SOURCE_DIR}/src/superbuild/gdal/gnm"
+ "${BRLCAD_SOURCE_DIR}/src/superbuild/gdal/apps"
+ "${BRLCAD_SOURCE_DIR}/src/superbuild/gdal/frmts/vrt"
+ CACHE STRING "Directories containing GDAL headers." FORCE)
+ set(GDAL_INCLUDE_DIRS "${GDAL_INCLUDE_DIR}" CACHE STRING "Directories
containing GDAL headers." FORCE)
+
+ SetTargetFolder(GDAL_BLD "Third Party Libraries")
+ SetTargetFolder(gdal "Third Party Libraries")
+
+endif (BRLCAD_GDAL_BUILD)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/gdal.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/itcl.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/itcl.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/itcl.cmake 2020-10-23 02:35:22 UTC
(rev 77581)
@@ -0,0 +1,149 @@
+# Because we're using Itcl 3, we have to check and see if it's present A system
+# install of Tcl/Tk may or may not have the older version.
+#
+# This is the only Tcl package we use that we can safely/reliably test for -
+# the others all depend on Tcl/Tk, and it is not possible to successfully load
+# Tcl/Tk packages requiring Tk on a non-graphical system (such as a Continuous
+# Integration runner.) Tk itself cannot be loaded successfully without
+# creating a graphical window, so there is no option for a "headless" start of
+# Tk for testing purposes. That limitation thus propagates to all packages
+# that require Tk.
+#
+# This limitation is unfortunate in the case of Itk, Tkhtml and Tktable. The
+# best we will be able to do will be to key off of the Itcl/Tk build settings,
+# which will mean that we won't be able to detect cases where Itcl and Tk *are*
+# installed but the others are not.
+
+function(ITCL_TEST bvar)
+
+ if (TARGET TCL_BLD)
+ # If we are building Tcl, we know the answer - we need to build Itcl3 as
well.
+ set(${bvar} 1 PARENT_SCOPE)
+ return()
+ endif (TARGET TCL_BLD)
+
+ # If we're looking at a system Tcl, check for the package. If it is there,
+ # we don't need to build. If it's not there and we're set to "AUTO", build.
+ # If it's not there and we're set to SYSTEM, error. By the time we are here,
+ # we should already have performed the find_package operation to locate Tcl
+ # and the necessary variables should be set.
+ if (NOT "${BRLCAD_ITCL}" STREQUAL "BUNDLED")
+ if (NOT TCL_TCLSH)
+ message(FATAL_ERROR "Need to test for Itcl3, but TCL_TCLSH is not set")
+ endif (NOT TCL_TCLSH)
+ file(WRITE "${CMAKE_BINARY_DIR}/CMakeTmp/itcl_test.tcl" "package require
Itcl 3")
+ execute_process(
+ COMMAND ${TCL_TCLSH} "${CMAKE_BINARY_DIR}/CMakeTmp/itcl_test.tcl"
+ RESULT_VARIABLE ITCL_TEST_FAILED
+ )
+ file(REMOVE "${CMAKE_BINARY_DIR}/CMakeTmp/itcl_test.tcl")
+ if (ITCL_TEST_FAILED)
+ if ("${BRLCAD_ITCL}" STREQUAL "SYSTEM")
+ # Test failed, but user has specified system - this is fatal.
+ message(FATAL_ERROR "System-installed Itcl3 specified, but package is
not available")
+ else ("${BRLCAD_ITCL}" STREQUAL "SYSTEM")
+ set(${bvar} 1 PARENT_SCOPE)
+ endif ("${BRLCAD_ITCL}" STREQUAL "SYSTEM")
+ else (ITCL_TEST_FAILED)
+ # We have Itcl 3 - no need to build.
+ set(${bvar} 0 PARENT_SCOPE)
+ endif (ITCL_TEST_FAILED)
+
+ endif (NOT "${BRLCAD_ITCL}" STREQUAL "BUNDLED")
+endfunction(ITCL_TEST bvar)
+
+if (BRLCAD_ENABLE_TCL)
+
+ ITCL_TEST(BUILD_ITCL)
+
+ if (BUILD_ITCL)
+
+ set(BRLCAD_ITCL_BUILD "ON" CACHE STRING "Enable Itcl build" FORCE)
+
+ set(ITCL_SRC_DIR
"${CMAKE_CURRENT_BINARY_DIR}/ITCL_BLD-prefix/src/ITCL_BLD")
+
+ set(ITCL_MAJOR_VERSION 3)
+ set(ITCL_MINOR_VERSION 4)
+ set(ITCL_VERSION ${ITCL_MAJOR_VERSION}.${ITCL_MINOR_VERSION})
+
+ set(ITCL_DEPS)
+ if (TARGET tcl_stage)
+ set(TCL_TARGET ON)
+ list(APPEND ITCL_DEPS tcl_stage)
+ list(APPEND ITCL_DEPS tclstub_stage)
+ list(APPEND ITCL_DEPS tclsh_exe_stage)
+ endif (TARGET tcl_stage)
+
+ set(ITCL_INSTDIR ${CMAKE_BINARY_ROOT}/ext/itcl3)
+
+ ExternalProject_Add(ITCL_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/itcl3"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${ITCL_INSTDIR}
+ -DBIN_DIR=${BIN_DIR}
+ -DLIB_DIR=${LIB_DIR}
+ -DSHARED_DIR=${SHARED_DIR}
+ -DINCLUDE_DIR=${INCLUDE_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH}
+ -DITCL_STATIC=${BUILD_STATIC_LIBS}
+ -DTCL_ROOT=$<$<BOOL:${TCL_TARGET}>:${CMAKE_BINARY_ROOT}>
+ -DTCL_VERSION=${TCL_VERSION}
+ DEPENDS ${ITCL_DEPS}
+ )
+
+ if (NOT MSVC)
+ set(ITCL_BASENAME libitcl${ITCL_MAJOR_VERSION}.${ITCL_MINOR_VERSION})
+ set(ITCL_STUBNAME libitclstub)
+ else (NOT MSVC)
+ set(ITCL_BASENAME itcl${ITCL_MAJOR_VERSION}.${ITCL_MINOR_VERSION})
+ set(ITCL_STUBNAME itclstub)
+ endif (NOT MSVC)
+
+ # Tell the parent build about files and libraries
+ ExternalProject_Target(SHARED itcl ITCL_BLD ${ITCL_INSTDIR}
+ itcl${ITCL_VERSION}/${ITCL_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
+ SUBDIR itcl${ITCL_VERSION}
+ )
+
+ ExternalProject_Target(STATIC itclstub ITCL_BLD ${ITCL_INSTDIR}
+ itcl${ITCL_VERSION}/${ITCL_STUBNAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ SUBDIR itcl${ITCL_VERSION}
+ )
+
+
+ ExternalProject_ByProducts(itcl ITCL_BLD ${ITCL_INSTDIR} ${INCLUDE_DIR}
+ itcl.h
+ itclDecls.h
+ itclInt.h
+ itclIntDecls.h
+ )
+
+ ExternalProject_ByProducts(itcl ITCL_BLD ${ITCL_INSTDIR}
${LIB_DIR}/itcl${ITCL_VERSION}
+ itcl.tcl
+ pkgIndex.tcl
+ )
+
+ set(ITCL_LIBRARY itcl CACHE STRING "Building bundled itcl" FORCE)
+ set(ITCL_LIBRARIES itcl CACHE STRING "Building bundled itcl" FORCE)
+
+ if (TARGET tcl_stage)
+ add_dependencies(itcl_stage tcl_stage)
+ endif (TARGET tcl_stage)
+
+ SetTargetFolder(ITCL_BLD "Third Party Libraries")
+
+ else (BUILD_ITCL)
+
+ set(BRLCAD_ITCL_BUILD "OFF" CACHE STRING "Disable Itcl build" FORCE)
+
+ endif (BUILD_ITCL)
+endif (BRLCAD_ENABLE_TCL)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/itcl.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/itk.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/itk.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/itk.cmake 2020-10-23 02:35:22 UTC
(rev 77581)
@@ -0,0 +1,144 @@
+# Unfortunately, there does not appear to be a reliable way to test for the
+# presence of the Itk package on a system Tcl/Tk. We key off of the presence
+# of the TK_BLD and ITCL_BLD targets, but that may produce a false negative if
+# those builds are both off but we still need Itk. As far as I can tell the
+# "package require Itk" test (which is what is required to properly test for an
+# available Itk package) can ONLY be performed successfully on a system that
+# supports creation of a graphics window. Window creation isn't typically
+# available on continuous integration runners, which means the test will always
+# fail there even when it shouldn't.
+
+# We try to find the itk library, since that's the only test we can do without
+# needing the graphical invocation. Unfortunately, even a find_library search
+# looking for libitk isn't completely reliable, since the presence of a shared
+# library is not a guarantee it is correctly hooked into the "package require"
+# mechanism of the system Tcl/Tk we want to use. (It is possible to have more
+# than one Tcl/Tk on a system - this situation is known to have occurred on the
+# Mac when 3rd party package managers are used, for example.)
+
+# Hopefully situations where a user has a complex Itcl/Itk setup are rare
+# enough that it won't be a significant issue, since there appears to be
+# only so much we can do to sort it out...
+
+if (BRLCAD_ENABLE_TK)
+
+ # Do what we can to make a sane decision on whether to build Itk
+ set(DO_ITK_BUILD 0)
+ if (TARGET TK_BLD OR TARGET ITCL_BLD OR "${BRLCAD_ITK}" STREQUAL "BUNDLED")
+ set(DO_ITK_BUILD 1)
+ else (TARGET TK_BLD OR TARGET ITCL_BLD OR "${BRLCAD_ITK}" STREQUAL "BUNDLED")
+ find_library(ITK_SYS_LIBRARY NAMES itk3)
+ if (NOT ITK_SYS_LIBRARY)
+ set(DO_ITK_BUILD 1)
+ endif (NOT ITK_SYS_LIBRARY)
+ endif (TARGET TK_BLD OR TARGET ITCL_BLD OR "${BRLCAD_ITK}" STREQUAL
"BUNDLED")
+
+ if (DO_ITK_BUILD)
+
+ set(BRLCAD_ITK_BUILD "ON" CACHE STRING "Enable Itk build" FORCE)
+
+ set(ITK_SRC_DIR "${CMAKE_CURRENT_BINARY_DIR}/ITK_BLD-prefix/src/ITK_BLD")
+
+ set(ITK_MAJOR_VERSION 3)
+ set(ITK_MINOR_VERSION 4)
+ set(ITK_VERSION ${ITK_MAJOR_VERSION}.${ITK_MINOR_VERSION})
+
+ set(ITK_DEPS)
+ if (TARGET tcl_stage)
+ set(TCL_TARGET ON)
+ list(APPEND ITK_DEPS tcl_stage)
+ list(APPEND ITK_DEPS tclstub_stage)
+ list(APPEND ITK_DEPS tclsh_exe_stage)
+ endif (TARGET tcl_stage)
+
+ if (TARGET itcl_stage)
+ set(ITCL_TARGET ON)
+ list(APPEND ITK_DEPS itcl_stage)
+ list(APPEND ITK_DEPS itclstub_stage)
+ endif (TARGET itcl_stage)
+
+ if (TARGET tk_stage)
+ list(APPEND ITK_DEPS tk_stage)
+ list(APPEND ITK_DEPS tkstub_stage)
+ list(APPEND ITK_DEPS wish_exe_stage)
+ endif (TARGET tk_stage)
+
+ set(ITK_INSTDIR ${CMAKE_BINARY_ROOT}/ext/itk3)
+
+ ExternalProject_Add(ITK_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/itk3"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${ITK_INSTDIR}
+ -DBIN_DIR=${BIN_DIR}
+ -DLIB_DIR=${LIB_DIR}
+ -DSHARED_DIR=${SHARED_DIR}
+ -DINCLUDE_DIR=${INCLUDE_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH}
+ -DBUILD_STATIC_LIBS_STATIC=${BUILD_STATIC_LIBS}
+ -DTCL_ROOT=$<$<BOOL:${TCL_TARGET}>:${CMAKE_BINARY_ROOT}>
+ -DITCL_ROOT=$<$<BOOL:${ITCL_TARGET}>:${CMAKE_BINARY_ROOT}>
+ -DTCL_VERSION=${TCL_VERSION}
+ DEPENDS ${ITK_DEPS}
+ )
+
+ if (NOT MSVC)
+ set(ITK_BASENAME libitk${ITK_MAJOR_VERSION}.${ITK_MINOR_VERSION})
+ set(ITK_STUBNAME libitkstub)
+ else (NOT MSVC)
+ set(ITK_BASENAME itk${ITK_MAJOR_VERSION}.${ITK_MINOR_VERSION})
+ set(ITK_STUBNAME itkstub)
+ endif (NOT MSVC)
+
+ # Tell the parent build about files and libraries
+ ExternalProject_Target(SHARED itk ITK_BLD ${ITK_INSTDIR}
+ itk${ITK_VERSION}/${ITK_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
+ SUBDIR itk${ITK_VERSION}
+ )
+
+ ExternalProject_ByProducts(itk ITK_BLD ${ITK_INSTDIR} ${INCLUDE_DIR}
+ itk.h
+ itkDecls.h
+ )
+
+ ExternalProject_ByProducts(itk ITK_BLD ${ITK_INSTDIR}
${LIB_DIR}/itk${ITK_VERSION}
+ Archetype.itk
+ Toplevel.itk
+ Widget.itk
+ itk.tcl
+ tclIndex
+ )
+
+ ExternalProject_ByProducts(itk ITK_BLD ${ITK_INSTDIR}
${LIB_DIR}/itk${ITK_VERSION}
+ pkgIndex.tcl
+ FIXPATH
+ )
+
+ set(ITK_LIBRARY itk CACHE STRING "Building bundled itcl" FORCE)
+ set(ITK_LIBRARIES itk CACHE STRING "Building bundled itcl" FORCE)
+
+ if (TARGET itcl_stage)
+ add_dependencies(itk_stage itcl_stage)
+ endif (TARGET itcl_stage)
+
+ if (TARGET tk_stage)
+ add_dependencies(itk_stage tk_stage)
+ endif (TARGET tk_stage)
+
+ SetTargetFolder(ITK_BLD "Third Party Libraries")
+
+ else (DO_ITK_BUILD)
+
+ set(BRLCAD_ITK_BUILD "OFF" CACHE STRING "Disable Itk build" FORCE)
+
+ endif (DO_ITK_BUILD)
+
+endif (BRLCAD_ENABLE_TK)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/itk.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/iwidgets.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/iwidgets.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/iwidgets.cmake 2020-10-23
02:35:22 UTC (rev 77581)
@@ -0,0 +1,147 @@
+# Unfortunately, there does not appear to be a reliable way to test for the
+# presence of the IWidgets package on a system Tcl/Tk. As far as I can tell
+# the "package require Iwidgets" test (which is what is required to properly
+# test for an available Iwidgets package) can ONLY be performed successfully on
+# a system that supports creation of a graphics window. Window creation isn't
+# typically available on continuous integration runners, which means the test
+# will always fail there even when it shouldn't.
+
+# Unless we have been specifically instructed to use a system version, provide
+# the bundled version.
+
+if (BRLCAD_ENABLE_TK)
+
+ # Do what we can to make a sane decision on whether to build Itk
+ set(DO_IWIDGETS_BUILD 1)
+ if ("${BRLCAD_IWIDGETS}" STREQUAL "SYSTEM")
+ set(DO_IWIDGETS_BUILD 0)
+ endif ("${BRLCAD_IWIDGETS}" STREQUAL "SYSTEM")
+
+ if (DO_IWIDGETS_BUILD)
+
+ set(BRLCAD_IWIDGETS_BUILD "ON" CACHE STRING "Enable Iwidgets build" FORCE)
+
+ set(IWIDGETS_SRC_DIR
"${CMAKE_CURRENT_BINARY_DIR}/IWIDGETS_BLD-prefix/src/IWIDGETS_BLD")
+
+ set(IWIDGETS_MAJOR_VERSION 4)
+ set(IWIDGETS_MINOR_VERSION 1)
+ set(IWIDGETS_PATCH_VERSION 1)
+ set(IWIDGETS_VERSION
${IWIDGETS_MAJOR_VERSION}.${IWIDGETS_MINOR_VERSION}.${IWIDGETS_PATCH_VERSION})
+
+ # If we have build targets, set the variables accordingly. Otherwise,
+ # we need to find the *Config.sh script locations.
+ set(IWIDGETS_DEPS)
+ if (TARGET tcl_stage)
+ list(APPEND IWIDGETS_DEPS tcl_stage)
+ endif (TARGET tcl_stage)
+ if (TARGET itcl_stage)
+ list(APPEND IWIDGETS_DEPS itcl_stage)
+ endif (TARGET itcl_stage)
+ if (TARGET tk_stage)
+ list(APPEND IWIDGETS_DEPS tk_stage)
+ endif (TARGET tk_stage)
+ if (TARGET itk_stage)
+ list(APPEND IWIDGETS_DEPS itk_stage)
+ endif (TARGET itk_stage)
+
+ # The Iwidgets build doesn't seem to work with Itk the same way it does
with the other
+ # dependencies - just point it to our local source copy
+ set(ITK_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/itk3")
+
+ set(IWIDGETS_INSTDIR "${CMAKE_BINARY_ROOT}/ext/iwidgets")
+
+ ExternalProject_Add(IWIDGETS_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/iwidgets"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${IWIDGETS_INSTDIR}
+ -DLIB_DIR=${LIB_DIR}
+ DEPENDS ${IWIDGETS_DEPS}
+ )
+
+ # Tell the parent build about files and libraries
+ ExternalProject_ByProducts(iwidgets IWIDGETS_BLD ${IWIDGETS_INSTDIR}
${LIB_DIR}/Iwidgets${IWIDGETS_VERSION}
+ iwidgets.tcl
+ license.terms
+ pkgIndex.tcl
+ )
+
+ ExternalProject_ByProducts(iwidgets IWIDGETS_BLD ${IWIDGETS_INSTDIR}
${LIB_DIR}/Iwidgets${IWIDGETS_VERSION}/scripts
+ buttonbox.itk
+ calendar.itk
+ canvasprintbox.itk
+ canvasprintdialog.itk
+ checkbox.itk
+ colors.itcl
+ combobox.itk
+ dateentry.itk
+ datefield.itk
+ dialog.itk
+ dialogshell.itk
+ disjointlistbox.itk
+ entryfield.itk
+ extbutton.itk
+ extfileselectionbox.itk
+ extfileselectiondialog.itk
+ feedback.itk
+ fileselectionbox.itk
+ fileselectiondialog.itk
+ finddialog.itk
+ hierarchy.itk
+ hyperhelp.itk
+ labeledframe.itk
+ labeledwidget.itk
+ mainwindow.itk
+ menubar.itk
+ messagebox.itk
+ messagedialog.itk
+ notebook.itk
+ optionmenu.itk
+ pane.itk
+ panedwindow.itk
+ promptdialog.itk
+ pushbutton.itk
+ radiobox.itk
+ regexpfield.itk
+ roman.itcl
+ scopedobject.itcl
+ scrolledcanvas.itk
+ scrolledframe.itk
+ scrolledhtml.itk
+ scrolledlistbox.itk
+ scrolledtext.itk
+ scrolledwidget.itk
+ selectionbox.itk
+ selectiondialog.itk
+ shell.itk
+ spindate.itk
+ spinint.itk
+ spinner.itk
+ spintime.itk
+ tabnotebook.itk
+ tabset.itk
+ tclIndex
+ timeentry.itk
+ timefield.itk
+ toolbar.itk
+ unknownimage.gif
+ watch.itk
+ )
+
+ SetTargetFolder(IWIDGETS_BLD "Third Party Libraries")
+
+ else (DO_IWIDGETS_BUILD)
+
+ set(BRLCAD_IWIDGETS_BUILD "OFF" CACHE STRING "Disable Iwidgets build"
FORCE)
+
+ endif (DO_IWIDGETS_BUILD)
+
+endif (BRLCAD_ENABLE_TK)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/iwidgets.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/netpbm.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/netpbm.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/netpbm.cmake 2020-10-23 02:35:22 UTC
(rev 77581)
@@ -0,0 +1,75 @@
+set(netpbm_DESCRIPTION "
+Option for enabling and disabling compilation of the netpbm library
+provided with BRL-CAD's source code. Default is AUTO, responsive to
+the toplevel BRLCAD_BUNDLED_LIBS option and testing first for a system
+version if BRLCAD_BUNDLED_LIBS is also AUTO.
+")
+THIRD_PARTY(netpbm NETPBM netpbm
+ netpbm_DESCRIPTION
+ REQUIRED_VARS BRLCAD_LEVEL2
+ ALIASES ENABLE_NETPBM
+ RESET_VARS NETPBM_LIBRARY NETPBM_INCLUDE_DIR
+ )
+
+if (BRLCAD_NETPBM_BUILD)
+
+ if (MSVC)
+ set(NETPBM_BASENAME netpbm)
+ else (MSVC)
+ set(NETPBM_BASENAME libnetpbm)
+ endif (MSVC)
+
+ set(NETPBM_INSTDIR ${CMAKE_BINARY_ROOT}/ext/netpbm)
+
+ ExternalProject_Add(NETPBM_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/netpbm"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${NETPBM_INSTDIR} -DLIB_DIR=${LIB_DIR}
-DBIN_DIR=${BIN_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH}
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
+ )
+
+ # Tell the parent build about files and libraries
+ ExternalProject_Target(SHARED netpbm NETPBM_BLD ${NETPBM_INSTDIR}
+ ${NETPBM_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
+ RPATH
+ )
+ ExternalProject_Target(STATIC netpbm-static NETPBM_BLD ${NETPBM_INSTDIR}
+ ${NETPBM_BASENAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+
+ ExternalProject_ByProducts(netpbm NETPBM_BLD ${NETPBM_INSTDIR}
${INCLUDE_DIR}/netpbm
+ bitio.h
+ colorname.h
+ pam.h
+ pammap.h
+ pbm.h
+ pbmfont.h
+ pgm.h
+ pm.h
+ pm_gamma.h
+ pm_system.h
+ pnm.h
+ ppm.h
+ ppmcmap.h
+ ppmfloyd.h
+ pm_config.h
+ )
+ set(SYS_INCLUDE_PATTERNS ${SYS_INCLUDE_PATTERNS} netpbm CACHE STRING
"Bundled system include dirs" FORCE)
+
+ set(NETPBM_LIBRARY netpbm CACHE STRING "Building bundled netpbm" FORCE)
+ set(NETPBM_LIBRARIES netpbm CACHE STRING "Building bundled netpbm" FORCE)
+ set(NETPBM_INCLUDE_DIR "${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/netpbm" CACHE
STRING "Directory containing netpbm headers." FORCE)
+ set(NETPBM_INCLUDE_DIRS "${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/netpbm" CACHE
STRING "Directory containing netpbm headers." FORCE)
+
+ SetTargetFolder(NETPBM_BLD "Third Party Libraries")
+ SetTargetFolder(netpbm "Third Party Libraries")
+
+endif (BRLCAD_NETPBM_BUILD)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/netpbm.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/perplex.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/perplex.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/perplex.cmake 2020-10-23
02:35:22 UTC (rev 77581)
@@ -0,0 +1,46 @@
+if (BRLCAD_LEVEL2)
+
+ set(PERPLEX_BLD_ROOT ${CMAKE_BINARY_DIR}/superbuild/perplex)
+
+ ExternalProject_Add(PERPLEX_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/perplex"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PERPLEX_BLD_ROOT} -DBIN_DIR=${BIN_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH} -DDATA_DIR=${DATA_DIR}
+ )
+
+ # Tell the parent about files and libraries
+ ExternalProject_Target(EXEC perplex_lemon PERPLEX_BLD ${PERPLEX_BLD_ROOT}
+ lemon${CMAKE_EXECUTABLE_SUFFIX}
+ RPATH
+ )
+ ExternalProject_Target(EXEC perplex_re2c PERPLEX_BLD ${PERPLEX_BLD_ROOT}
+ re2c${CMAKE_EXECUTABLE_SUFFIX}
+ RPATH
+ )
+ ExternalProject_Target(EXEC perplex_perplex PERPLEX_BLD ${PERPLEX_BLD_ROOT}
+ perplex${CMAKE_EXECUTABLE_SUFFIX}
+ RPATH
+ )
+ ExternalProject_ByProducts(perplex_lemon PERPLEX_BLD ${PERPLEX_BLD_ROOT}
${DATA_DIR}/lemon
+ lempar.c
+ )
+ ExternalProject_ByProducts(perplex_perplex PERPLEX_BLD ${PERPLEX_BLD_ROOT}
${DATA_DIR}/perplex
+ perplex_template.c
+ )
+
+ set(LEMON_TEMPLATE "${CMAKE_BINARY_ROOT}/${DATA_DIR}/lemon/lempar.c" CACHE
PATH "lemon template" FORCE)
+ set(PERPLEX_TEMPLATE
"${CMAKE_BINARY_ROOT}/${DATA_DIR}/perplex/perplex_template.c" CACHE PATH
"perplex template" FORCE)
+ set(LEMON_EXECUTABLE perplex_lemon CACHE STRING "lemon" FORCE)
+ set(RE2C_EXECUTABLE perplex_re2c CACHE STRING "re2c" FORCE)
+ set(PERPLEX_EXECUTABLE perplex_perplex CACHE STRING "perplex" FORCE)
+
+endif (BRLCAD_LEVEL2)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/perplex.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/proj4.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/proj4.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/proj4.cmake 2020-10-23 02:35:22 UTC
(rev 77581)
@@ -0,0 +1,88 @@
+set(proj4_DESCRIPTION "
+Option for enabling and disabling compilation of the PROJ.4 geographic
+projection library provided with BRL-CAD's source code. Default
+is AUTO, responsive to the toplevel BRLCAD_BUNDLED_LIBS option and
+testing first for a system version if BRLCAD_BUNDLED_LIBS is also
+AUTO.
+")
+THIRD_PARTY(proj-4 PROJ4 proj4
+ proj4_DESCRIPTION
+ REQUIRED_VARS "BRLCAD_ENABLE_GDAL;BRLCAD_LEVEL2"
+ ALIASES ENABLE_PROJ4
+ RESET_VARS PROJ4_LIBRARY PROJ4_LIBRARIES PROJ4_INCLUDE_DIR PROJ4_INCLUDE_DIRS
+ )
+
+if (BRLCAD_PROJ4_BUILD)
+
+ set(PROJ_MAJOR_VERSION 4)
+ set(PROJ_MINOR_VERSION 9)
+ set(PROJ_API_VERSION 12)
+ set(PROJ_VERSION
${PROJ_MAJOR_VERSION}.${PROJ_MINOR_VERSION}.${PROJ_API_VERSION})
+
+ if (MSVC)
+ set(PROJ_BASENAME proj)
+ set(PROJ_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
+ else (MSVC)
+ set(PROJ_BASENAME libproj)
+ set(PROJ_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX}.${PROJ_VERSION})
+ endif (MSVC)
+
+ set(PROJ4_INSTDIR ${CMAKE_BINARY_ROOT}/ext/proj-4)
+
+ ExternalProject_Add(PROJ4_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/proj-4"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PROJ4_INSTDIR} -DLIB_DIR=${LIB_DIR}
-DBIN_DIR=${BIN_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH}
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
+ -DPROJ_LIB_DIR=${CMAKE_INSTALL_PREFIX}/${DATA_DIR}/proj
+ )
+
+ # Tell the parent build about files and libraries
+ ExternalProject_Target(SHARED proj PROJ4_BLD ${PROJ4_INSTDIR}
+ ${PROJ_BASENAME}${PROJ_SUFFIX}
+ SYMLINKS
${PROJ_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX};${PROJ_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.${PROJ_API_VERSION}
+ LINK_TARGET ${PROJ_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
+ RPATH
+ )
+ ExternalProject_Target(STATIC proj-static PROJ4_BLD ${PROJ4_INSTDIR}
+ ${PROJ_BASENAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+
+ ExternalProject_ByProducts(proj PROJ4_BLD ${PROJ4_INSTDIR} ${DATA_DIR}/proj
+ epsg
+ esri
+ world
+ esri.extra
+ other.extra
+ IGNF
+ nad27
+ GL27
+ nad83
+ nad.lst
+ proj_def.dat
+ CH
+ )
+
+ ExternalProject_ByProducts(proj PROJ4_BLD ${PROJ4_INSTDIR}
${INCLUDE_DIR}/proj
+ projects.h
+ proj_api.h
+ geodesic.h
+ )
+ set(SYS_INCLUDE_PATTERNS ${SYS_INCLUDE_PATTERNS} proj CACHE STRING "Bundled
system include dirs" FORCE)
+
+
+ set(PROJ4_LIBRARIES proj CACHE STRING "Building bundled proj" FORCE)
+ set(PROJ4_INCLUDE_DIRS "${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/proj" CACHE
STRING "Directory containing proj headers." FORCE)
+
+ SetTargetFolder(PROJ4_BLD "Third Party Libraries")
+ SetTargetFolder(proj "Third Party Libraries")
+
+endif (BRLCAD_PROJ4_BUILD)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/proj4.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/regex.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/regex.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/regex.cmake 2020-10-23 02:35:22 UTC
(rev 77581)
@@ -0,0 +1,68 @@
+set (regex_DESCRIPTION "
+Option for enabling and disabling compilation of the Regular
+Expression Library provided with BRL-CAD's source distribution.
+Default is AUTO, responsive to the toplevel BRLCAD_BUNDLED_LIBS option
+and testing first for a system version if BRLCAD_BUNDLED_LIBS is also
+AUTO.
+")
+THIRD_PARTY(regex REGEX regex
+ regex_DESCRIPTION
+ ALIASES ENABLE_REGEX
+ RESET_VARS REGEX_LIBRARY REGEX_LIBRARIES REGEX_INCLUDE_DIR REGEX_INCLUDE_DIRS
+ )
+
+if (BRLCAD_REGEX_BUILD)
+
+ set(REGEX_VERSION "1.0.4")
+ if (MSVC)
+ set(REGEX_BASENAME regex_brl)
+ set(REGEX_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
+ else (MSVC)
+ set(REGEX_BASENAME libregex_brl)
+ set(REGEX_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX}.${REGEX_VERSION})
+ endif (MSVC)
+
+ set(REGEX_INSTDIR ${CMAKE_BINARY_ROOT}/ext/regex)
+
+ # Platform differences in default linker behavior make it difficult to
+ # guarantee that our libregex symbols will override libc. We'll avoid the
+ # issue by renaming our libregex symbols to be incompatible with libc.
+ ExternalProject_Add(REGEX_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/regex"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${REGEX_INSTDIR} -DLIB_DIR=${LIB_DIR}
-DBIN_DIR=${BIN_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH}
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
+ -DREGEX_PREFIX_STR=libregex_
+ )
+
+ # Tell the parent build about files and libraries
+ ExternalProject_Target(SHARED regex REGEX_BLD ${REGEX_INSTDIR}
+ ${REGEX_BASENAME}${REGEX_SUFFIX}
+ SYMLINKS
${REGEX_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX};${REGEX_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.1
+ LINK_TARGET ${REGEX_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
+ RPATH
+ )
+ ExternalProject_Target(STATIC regex-static REGEX_BLD ${REGEX_INSTDIR}
+ ${REGEX_BASENAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ RPATH
+ )
+
+ ExternalProject_ByProducts(regex REGEX_BLD ${REGEX_INSTDIR} ${INCLUDE_DIR}
+ regex.h
+ )
+
+ set(REGEX_LIBRARIES regex CACHE STRING "Building bundled libregex" FORCE)
+ set(REGEX_INCLUDE_DIRS "${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}" CACHE STRING
"Directory containing regex headers." FORCE)
+
+ SetTargetFolder(REGEX_BLD "Third Party Libraries")
+ SetTargetFolder(regex "Third Party Libraries")
+
+endif (BRLCAD_REGEX_BUILD)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/regex.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/stepcode.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/stepcode.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/stepcode.cmake 2020-10-23
02:35:22 UTC (rev 77581)
@@ -0,0 +1,214 @@
+set(sc_DESCRIPTION "
+Option for enabling and disabling compilation of the NIST Step Class
+Libraries provided with BRL-CAD's source code. Default is AUTO,
+responsive to the toplevel BRLCAD_BUNDLED_LIBS option and testing
+first for a system version if BRLCAD_BUNDLED_LIBS is also AUTO.
+")
+
+THIRD_PARTY(stepcode SC stepcode sc_DESCRIPTION
+ REQUIRED_VARS BRLCAD_LEVEL3 BRLCAD_ENABLE_STEP
+ ALIASES ${sc_ALIASES}
+ RESET_VARS EXP2CXX_EXEC EXP2CXX_EXECUTABLE_TARGET
+ FLAGS NOSYS)
+
+if(BRLCAD_SC_BUILD)
+
+ set(SC_MAJOR_VERSION 2)
+ set(SC_MINOR_VERSION 0)
+ set(SC_PATCH_VERSION 0)
+ set(SC_VERSION ${SC_MAJOR_VERSION}.${SC_MINOR_VERSION}.${SC_PATCH_VERSION})
+
+ if (MSVC)
+ set(SC_PREFIX "")
+ set(SC_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
+ else (MSVC)
+ set(SC_PREFIX "lib")
+ set(SC_SUFFIX "${CMAKE_SHARED_LIBRARY_SUFFIX}.${SC_VERSION}")
+ endif (MSVC)
+
+ set(SC_DEPS)
+ if (TARGET PERPLEX_BLD)
+ list(APPEND SC_DEPS perplex_lemon perplex_re2c perplex_perplex)
+ endif (TARGET PERPLEX_BLD)
+
+ set(STEPCODE_INSTDIR "${CMAKE_BINARY_ROOT}/ext/stepcode")
+
+ ExternalProject_Add(STEPCODE_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/stepcode"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${STEPCODE_INSTDIR} -DLIB_DIR=${LIB_DIR}
-DBIN_DIR=${BIN_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH}
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
+ -DLEMON_ROOT=${CMAKE_BINARY_ROOT}
+ -DRE2C_ROOT=${CMAKE_BINARY_ROOT}
+ -DPERPLEX_ROOT=${CMAKE_BINARY_ROOT}
+ -DSC_IS_SUBBUILD=ON -DSC_PYTHON_GENERATOR=OFF
+ -DSC_ENABLE_TESTING=OFF -DSC_ENABLE_COVERAGE=OFF
-DSC_BUILD_SCHEMAS=
+ -DINCLUDE_INSTALL_DIR=${INCLUDE_DIR}
+ DEPENDS ${SC_DEPS}
+ )
+
+ # Tell the parent build about files and libraries
+ set(STEPCODE_LIBS base express stepcore stepeditor stepdai steputils)
+ foreach(SCLIB ${STEPCODE_LIBS})
+ ExternalProject_Target(SHARED ${SCLIB} STEPCODE_BLD ${STEPCODE_INSTDIR}
+ ${SC_PREFIX}${SCLIB}${SC_SUFFIX}
+ SYMLINKS
${SC_PREFIX}${SCLIB}${CMAKE_SHARED_LIBRARY_SUFFIX};${SC_PREFIX}${SCLIB}${CMAKE_SHARED_LIBRARY_SUFFIX}.2
+ LINK_TARGET ${SC_PREFIX}${SCLIB}${CMAKE_SHARED_LIBRARY_SUFFIX}
+ RPATH
+ )
+ endforeach(SCLIB ${STEPCODE_LIBS})
+ # libexppp is a special naming case, to avoid conflict with the exppp
executable
+ ExternalProject_Target(SHARED libexppp STEPCODE_BLD ${STEPCODE_INSTDIR}
+ libexppp${SC_SUFFIX}
+ SYMLINKS
libexppp${CMAKE_SHARED_LIBRARY_SUFFIX};libexppp${CMAKE_SHARED_LIBRARY_SUFFIX}.2
+ LINK_TARGET libexppp${CMAKE_SHARED_LIBRARY_SUFFIX}
+ RPATH
+ )
+ set(STEPCODE_EXECS check-express exppp exp2cxx)
+ foreach(SCEXEC ${STEPCODE_EXECS})
+ ExternalProject_Target(EXEC ${SCEXEC}_exe STEPCODE_BLD ${STEPCODE_INSTDIR}
+ ${SCEXEC}${CMAKE_EXECUTABLE_SUFFIX}
+ RPATH
+ )
+ foreach(SCLIB ${STEPCODE_LIBS})
+ add_dependencies(${SCEXEC}_exe_stage ${SCLIB}_stage)
+ endforeach(SCLIB ${STEPCODE_LIBS})
+ add_dependencies(${SCEXEC}_exe_stage libexppp_stage)
+ endforeach(SCEXEC ${STEPCODE_EXECS})
+
+ ExternalProject_ByProducts(stepcore STEPCODE_BLD ${STEPCODE_INSTDIR}
${INCLUDE_DIR}/stepcode
+ cldai/sdaiApplication_instance_set.h
+ cldai/sdaiSession_instance.h
+ cldai/sdaiObject.h
+ cldai/sdaiString.h
+ cldai/sdaiEntity_extent.h
+ cldai/sdaiEnum.h
+ cldai/sdaiModel_contents.h
+ cldai/sdaiBinary.h
+ cldai/sdaiEntity_extent_set.h
+ cldai/sdaiModel_contents_list.h
+ cldai/sdaiDaObject.h
+ ordered_attrs.h
+ exppp/exppp.h
+ express/hash.h
+ express/error.h
+ express/linklist.h
+ express/basic.h
+ express/memory.h
+ express/lexact.h
+ express/type.h
+ express/caseitem.h
+ express/entity.h
+ express/resolve.h
+ express/schema.h
+ express/stmt.h
+ express/expr.h
+ express/dict.h
+ express/expbasic.h
+ express/alg.h
+ express/variable.h
+ express/express.h
+ express/object.h
+ express/symbol.h
+ express/scope.h
+ sc_export.h
+ sc_cf.h
+ clutils/Str.h
+ clutils/gennodearray.h
+ clutils/gennode.h
+ clutils/errordesc.h
+ clutils/gennodelist.h
+ clutils/sc_hash.h
+ clutils/dirobj.h
+ cleditor/cmdmgr.h
+ cleditor/editordefines.h
+ cleditor/SdaiHeaderSchemaClasses.h
+ cleditor/seeinfodefault.h
+ cleditor/SdaiHeaderSchema.h
+ cleditor/SdaiSchemaInit.h
+ cleditor/STEPfile.h
+ sc_version_string.h
+ sc_stdbool.h
+ base/sc_getopt.h
+ base/sc_trace_fprintf.h
+ base/sc_benchmark.h
+ base/sc_memmgr.h
+ clstepcore/STEPundefined.h
+ clstepcore/mgrnodelist.h
+ clstepcore/STEPattribute.h
+ clstepcore/STEPaggregate.h
+ clstepcore/ExpDict.h
+ clstepcore/read_func.h
+ clstepcore/needFunc.h
+ clstepcore/mgrnodearray.h
+ clstepcore/mgrnode.h
+ clstepcore/dispnode.h
+ clstepcore/sdai.h
+ clstepcore/STEPcomplex.h
+ clstepcore/instmgr.h
+ clstepcore/baseType.h
+ clstepcore/sdaiSelect.h
+ clstepcore/SubSuperIterators.h
+ clstepcore/dictdefs.h
+ clstepcore/SingleLinkList.h
+ clstepcore/STEPattributeList.h
+ clstepcore/dispnodelist.h
+ clstepcore/sdaiApplication_instance.h
+ clstepcore/Registry.h
+ clstepcore/complexSupport.h
+ )
+
+ set(SYS_INCLUDE_PATTERNS ${SYS_INCLUDE_PATTERNS} stepcode CACHE STRING
"Bundled system include dirs" FORCE)
+
+ set(STEPCODE_BASE_DIR ${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/stepcode/base
CACHE STRING "Building bundled STEPCODE" FORCE)
+ set(STEPCODE_DAI_DIR ${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/stepcode/cldai
CACHE STRING "Building bundled STEPCODE" FORCE)
+ set(STEPCODE_EDITOR_DIR
${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/stepcode/cleditor CACHE STRING "Building
bundled STEPCODE" FORCE)
+ set(STEPCODE_STEPCORE_DIR
${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/stepcode/clstepcore CACHE STRING "Building
bundled STEPCODE" FORCE)
+ set(STEPCODE_UTILS_DIR ${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/stepcode/clutils
CACHE STRING "Building bundled STEPCODE" FORCE)
+ set(STEPCODE_EXPPP_DIR ${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/stepcode/exppp
CACHE STRING "Building bundled STEPCODE" FORCE)
+ set(STEPCODE_EXPRESS_DIR
${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/stepcode/express CACHE STRING "Building
bundled STEPCODE" FORCE)
+ set(STEPCODE_INCLUDE_DIR ${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}/stepcode CACHE
STRING "Building bundled STEPCODE" FORCE)
+
+ set(STEPCODE_BASE_LIBRARY base CACHE STRING "Building bundled STEPCODE"
FORCE)
+ set(STEPCODE_EXPRESS_LIBRARY express CACHE STRING "Building bundled
STEPCODE" FORCE)
+ set(STEPCODE_EXPPP_LIBRARY exppp CACHE STRING "Building bundled STEPCODE"
FORCE)
+ set(STEPCODE_CORE_LIBRARY stepcore CACHE STRING "Building bundled STEPCODE"
FORCE)
+ set(STEPCODE_EDITOR_LIBRARY stepeditor CACHE STRING "Building bundled
STEPCODE" FORCE)
+ set(STEPCODE_DAI_LIBRARY stepdai CACHE STRING "Building bundled STEPCODE"
FORCE)
+ set(STEPCODE_UTILS_LIBRARY steputils CACHE STRING "Building bundled
STEPCODE" FORCE)
+
+ set(EXP2CXX_EXECUTABLE exp2cxx_exe CACHE STRING "Building bundled STEPCODE"
FORCE)
+ set(EXPPP_EXECUTABLE exppp_exe CACHE STRING "Building bundled STEPCODE"
FORCE)
+
+ set(STEPCODE_INCLUDE_DIRS
+ ${STEPCODE_DIR}
+ ${STEPCODE_BASE_DIR}
+ ${STEPCODE_STEPCORE_DIR}
+ ${STEPCODE_EDITOR_DIR}
+ ${STEPCODE_UTILS_DIR}
+ ${STEPCODE_DAI_DIR}
+ CACHE STRING "Directories containing STEPCODE headers." FORCE)
+
+ set(STEPCODE_LIBRARIES
+ ${STEPCODE_BASE_LIBRARY}
+ ${STEPCODE_EXPRESS_LIBRARY}
+ ${STEPCODE_EXPPP_LIBRARY}
+ ${STEPCODE_CORE_LIBRARY}
+ ${STEPCODE_EDITOR_LIBRARY}
+ ${STEPCODE_DAI_LIBRARY}
+ ${STEPCODE_UTILS_LIBRARY}
+ CACHE STRING "Directories containing STEPCODE headers." FORCE)
+
+ set(STEPCODE_DIR ${CMAKE_BINARY_ROOT}/ext/stepcode CACHE STRING "Building
bundled STEPCODE" FORCE)
+
+ SetTargetFolder(STEPCODE_BLD "Third Party Libraries")
+ SetTargetFolder(stepcode "Third Party Libraries")
+endif(BRLCAD_SC_BUILD)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/stepcode.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/zlib.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/zlib.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/zlib.cmake 2020-10-23 02:35:22 UTC
(rev 77581)
@@ -0,0 +1,81 @@
+set (zlib_DESCRIPTION "
+Option for enabling and disabling compilation of the zlib library
+provided with BRL-CAD's source distribution. Default is AUTO,
+responsive to the toplevel BRLCAD_BUNDLED_LIBS option and testing
+first for a system version if BRLCAD_BUNDLED_LIBS is also AUTO.
+")
+
+THIRD_PARTY(libz ZLIB zlib
+ zlib_DESCRIPTION
+ ALIASES ENABLE_ZLIB ENABLE_LIBZ
+ RESET_VARS ZLIB_LIBRARY ZLIB_LIBRARIES ZLIB_INCLUDE_DIR ZLIB_INCLUDE_DIRS
ZLIB_LIBRARY_DEBUG ZLIB_LIBRARY_RELEASE
+ )
+
+if (BRLCAD_ZLIB_BUILD)
+
+ set(ZLIB_VERSION 1.2.11)
+
+ set(Z_PREFIX_STR "brl_")
+ add_definitions(-DZ_PREFIX)
+ add_definitions(-DZ_PREFIX_STR=${Z_PREFIX_STR})
+ set(Z_PREFIX_STR "${Z_PREFIX_STR}" CACHE STRING "prefix for zlib functions"
FORCE)
+
+ if (MSVC)
+ set(ZLIB_BASENAME z_brl)
+ set(ZLIB_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
+ else (MSVC)
+ set(ZLIB_BASENAME libz_brl)
+ set(ZLIB_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX}.${ZLIB_VERSION})
+ endif (MSVC)
+
+ set(ZLIB_INSTDIR ${CMAKE_BINARY_ROOT}/ext/zlib)
+
+ ExternalProject_Add(ZLIB_BLD
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/zlib"
+ BUILD_ALWAYS ${EXTERNAL_BUILD_UPDATE} ${LOG_OPTS}
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${ZLIB_INSTDIR} -DLIB_DIR=${LIB_DIR}
-DBIN_DIR=${BIN_DIR}
+ -DCMAKE_INSTALL_RPATH=${CMAKE_BUILD_RPATH}
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
+ -DZ_PREFIX_STR=${Z_PREFIX_STR}
+ )
+
+ # Tell the parent build about files and libraries
+ ExternalProject_Target(SHARED zlib ZLIB_BLD ${ZLIB_INSTDIR}
+ ${ZLIB_BASENAME}${ZLIB_SUFFIX}
+ SYMLINKS
"${ZLIB_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX};${ZLIB_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.1"
+ LINK_TARGET "${ZLIB_BASENAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
+ RPATH
+ )
+ ExternalProject_Target(STATIC zlib-static ZLIB_BLD ${ZLIB_INSTDIR}
+ ${ZLIB_BASENAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+
+ ExternalProject_ByProducts(zlib ZLIB_BLD ${ZLIB_INSTDIR} ${INCLUDE_DIR}
+ zconf.h
+ zlib.h
+ )
+
+ set(ZLIB_LIBRARY_DEBUG zlib CACHE STRING "Building bundled zlib" FORCE)
+ set(ZLIB_LIBRARY_RELEASE zlib CACHE STRING "Building bundled zlib" FORCE)
+ set(ZLIB_LIBRARIES zlib CACHE STRING "Building bundled zlib" FORCE)
+ set(ZLIB_INCLUDE_DIR "${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}" CACHE STRING
"Directory containing zlib headers." FORCE)
+ set(ZLIB_INCLUDE_DIRS "${CMAKE_BINARY_ROOT}/${INCLUDE_DIR}" CACHE STRING
"Directory containing zlib headers." FORCE)
+
+ SetTargetFolder(ZLIB_BLD "Third Party Libraries")
+ SetTargetFolder(zlib "Third Party Libraries")
+
+else (BRLCAD_ZLIB_BUILD)
+
+ set(Z_PREFIX_STR "" CACHE STRING "clear prefix for zlib functions" FORCE)
+ set(Z_PREFIX_STR)
+ set(ZLIB_LIBRARIES ${ZLIB_LIBRARY_RELEASE} CACHE STRING "ZLIB_LIBRARIES"
FORCE)
+ set(ZLIB_INCLUDE_DIRS "${ZLIB_INCLUDE_DIR}" CACHE STRING "ZLIB include
directory" FORCE)
+
+endif (BRLCAD_ZLIB_BUILD)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
+
Property changes on: brlcad/branches/extbuild/src/other/ext/zlib.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits