Warning, /JETSCAPE/external_packages/hydro_from_external_file/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
0002 project (lib_Hydro_from_file)
0003
0004 #for MacOSX
0005 cmake_policy(SET CMP0042 NEW)
0006
0007 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "../../lib/")
0008
0009 if (${HDF5_FOUND})
0010 message(STATUS "hydro from file is compiled with hdf5 library ...")
0011 set (SOURCES
0012 main.cpp
0013 FluidcellStatistic.cpp
0014 ParameterReader.cpp
0015 arsenal.cpp
0016 SurfaceFinder.cpp
0017 cornelius.cpp
0018 Hydroinfo_MUSIC.cpp
0019 Hydroinfo_h5.cpp)
0020 add_library(hydroFromFile SHARED ${SOURCES})
0021 set_target_properties (hydroFromFile PROPERTIES COMPILE_FLAGS "-DUSE_HDF5")
0022 target_link_libraries (hydroFromFile ${_hdf5_libs})
0023 else (${HDF5_FOUND})
0024 message(STATUS "hydro from file is compiled without hdf5 library ...")
0025 set (SOURCES
0026 main.cpp
0027 FluidcellStatistic.cpp
0028 ParameterReader.cpp
0029 arsenal.cpp
0030 SurfaceFinder.cpp
0031 cornelius.cpp
0032 Hydroinfo_MUSIC.cpp)
0033 add_library(hydroFromFile SHARED ${SOURCES})
0034 endif(${HDF5_FOUND})
0035