Last active
October 23, 2017 23:49
-
-
Save mlohry/3250dcd3a9c8092c0a3865f534849efc to your computer and use it in GitHub Desktop.
CGNS external project
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
ExternalProject_Add( | |
cgns_external | |
URL "https://github.com/CGNS/CGNS/archive/v3.3.1.zip" | |
URL_MD5 d5798e5904ac1029ae324d47fad08efe | |
SOURCE_DIR ${CMAKE_BINARY_DIR}/external/cgns/ | |
BINARY_DIR ${CMAKE_BINARY_DIR}/external/cgns-build/ | |
INSTALL_DIR ${EXTERNAL_INSTALL_DIR} | |
CMAKE_ARGS | |
-D CGNS_BUILD_SHARED:BOOL=ON | |
-D CGNS_USE_SHARED:BOOL=ON | |
-D CGNS_ENABLE_FORTRAN:BOOL=OFF | |
-D CGNS_ENABLE_SCOPING:BOOL=ON | |
-U CMAKE_EXE_LINKER_FLAGS | |
-U CMAKE_STATIC_LINKER_FLAGS | |
-D MPI_C_COMPILER:STRING=${MPI_C_COMPILER} | |
-D CGNS_ENABLE_HDF5:BOOL=ON | |
-D CGNS_ENABLE_TESTS:BOOL=ON | |
-D CGNS_BUILD_CGNSTOOLS:BOOL=OFF | |
-D CGNS_ENABLE_64BIT:BOOL=ON | |
-D CMAKE_C_COMPILER:PATH=${MPI_C_COMPILER} | |
-D CMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_DIR} | |
-D CMAKE_POSITION_INDEPENDENT_CODE=ON | |
) | |
set( CGNS_INCLUDE_DIR ${EXTERNAL_INSTALL_DIR}/include CACHE PATH "" ) | |
set( CGNS_LIBRARIES ${EXTERNAL_INSTALL_DIR}/lib/libcgns.so CACHE PATH "" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment