-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further updates for Windows CMake building with static HDF libraries.…
… Refs #330 git-svn-id: https://svn.nexusformat.org/code/trunk@1852 ff5d1e40-2be0-497f-93bd-dc18237bd3c7
- Loading branch information
1 parent
934d2bb
commit 7464b1b
Showing
14 changed files
with
181 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@echo off | ||
REM #==================================================================== | ||
REM # NeXus - Neutron & X-ray Common Data Format | ||
REM # | ||
REM # $Id: nxbuild.in 1030 2008-07-15 15:16:49Z Freddie Akeroyd $ | ||
REM # | ||
REM # @configure_input@ | ||
REM # | ||
REM # Script for running nxvalidate on windows | ||
REM # | ||
REM # Copyright (C) 2010 Freddie Akeroyd | ||
REM # | ||
REM # This library is free software; you can redistribute it and/or | ||
REM # modify it under the terms of the GNU Lesser General Public | ||
REM # License as published by the Free Software Foundation; either | ||
REM # version 2 of the License, or (at your option) any later version. | ||
REM # | ||
REM # This library is distributed in the hope that it will be useful, | ||
REM # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
REM # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
REM # Lesser General Public License for more details. | ||
REM # | ||
REM # You should have received a copy of the GNU Lesser General Public | ||
REM # License along with this library; if not, write to the Free | ||
REM # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, | ||
REM # MA 02111-1307 USA | ||
REM # | ||
REM # For further information, see <http://www.nexusformat.org> | ||
REM # | ||
REM #==================================================================== | ||
set NXJAVADIR=%NEXUSDIR%\share\java | ||
set CLASSPATH=%NXJAVADIR%\jnexus.jar;%CLASSPATH% | ||
set PATH=%NEXUSDIR%\bin;%PATH% | ||
java -jar "%NXJAVADIR%\NXvalidate.jar" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@echo off | ||
set NEXUS_THIRD_PARTY=C:\development\nexus-third-party | ||
|
||
set HDF5_ROOT64=C:\Program Files\HDF_Group\HDF5\1.8.10 | ||
set HDF4_ROOT64=C:\Program Files\HDF_Group\HDF\4.2.8 | ||
set MXML_ROOT64=c:\Program Files\mxml | ||
|
||
set HDF5_ROOT32=C:\Program Files (x86)\HDF_Group\HDF5\1.8.10 | ||
set HDF4_ROOT32=C:\Program Files (x86)\HDF_Group\HDF\4.2.8 | ||
set MXML_ROOT32=c:\Program Files (x86)\mxml | ||
|
||
cmake -DNATIVE:PATH="%NEXUS_THIRD_PARTY%" -P dir_syntax.cmake | ||
set /P NEXUS_THIRD_PARTY_CMAKE= < dir_syntax.txt | ||
del /q dir_syntax.txt | ||
|
||
cmake -DNATIVE:PATH="%HDF5_ROOT64%" -P dir_syntax.cmake | ||
set /P HDF5_ROOT64_CMAKE= < dir_syntax.txt | ||
del /q dir_syntax.txt | ||
|
||
cmake -DNATIVE:PATH="%HDF5_ROOT32%" -P dir_syntax.cmake | ||
set /P HDF5_ROOT32_CMAKE= < dir_syntax.txt | ||
del /q dir_syntax.txt | ||
|
||
rmdir /s /q build_win64 | ||
mkdir build_win64 | ||
cd build_win64 | ||
set HDF5_ROOT=%HDF5_ROOT64% | ||
set HDF4_ROOT=%HDF4_ROOT64% | ||
set MXML_ROOT=%MXML_ROOT64% | ||
REM -DBUILD_TESTING:BOOL=ON -DUSE_SHARED_LIBS:BOOL=ON | ||
cmake -G "Visual Studio 10 Win64" ^ | ||
-DZLIB_ROOT="%HDF5_ROOT64_CMAKE%" ^ | ||
-DNEXUS_THIRD_PARTY="%NEXUS_THIRD_PARTY_CMAKE%" ^ | ||
-DCMAKE_PREFIX_PATH="%NEXUS_THIRD_PARTY_CMAKE%/win64" ^ | ||
.. | ||
cd .. | ||
|
||
rmdir /s /q build_win32 | ||
mkdir build_win32 | ||
cd build_win32 | ||
set HDF5_ROOT=%HDF5_ROOT32% | ||
set HDF4_ROOT=%HDF4_ROOT32% | ||
set MXML_ROOT=%MXML_ROOT32% | ||
REM -DBUILD_TESTING:BOOL=ON -DUSE_SHARED_LIBS:BOOL=ON | ||
cmake -G "Visual Studio 10" ^ | ||
-DZLIB_ROOT="%HDF5_ROOT32_CMAKE%" ^ | ||
-DNEXUS_THIRD_PARTY="%NEXUS_THIRD_PARTY_CMAKE%" ^ | ||
-DCMAKE_PREFIX_PATH="%NEXUS_THIRD_PARTY_CMAKE%/win32" ^ | ||
.. | ||
cd .. | ||
|
||
@echo Now enter either build_win32 or build_win64 and type | ||
@echo | ||
@echo cmake --build . --config RelWihDebInfo --clean-first | ||
@echo cpack -C RelWihDebInfo CPackConfig.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# syntax: cmake -DNATIVE:PATH="something" -P dir_syntax.cmake | ||
# | ||
file(TO_CMAKE_PATH "${NATIVE}" TRANS) | ||
file(WRITE "dir_syntax.txt" "${TRANS}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.