49 lines
987 B
CMake
49 lines
987 B
CMake
SET(CosmoTool_SRCS
|
|
fortran.cpp
|
|
interpolate.cpp
|
|
load_data.cpp
|
|
loadGadget.cpp
|
|
loadRamses.cpp
|
|
octTree.cpp
|
|
powerSpectrum.cpp
|
|
yorick.cpp
|
|
miniargs.cpp
|
|
growthFactor.cpp
|
|
)
|
|
|
|
SET(CosmoTool_SRCS ${CosmoTool_SRCS}
|
|
bqueue.hpp
|
|
config.hpp
|
|
dinterpolate.hpp
|
|
field.hpp
|
|
fixArray.hpp
|
|
fortran.hpp
|
|
interpolate3d.hpp
|
|
interpolate.hpp
|
|
kdtree_leaf.hpp
|
|
load_data.hpp
|
|
loadGadget.hpp
|
|
loadRamses.hpp
|
|
loadSimu.hpp
|
|
miniargs.hpp
|
|
mykdtree.hpp
|
|
octTree.hpp
|
|
powerSpectrum.hpp
|
|
sparseGrid.hpp
|
|
sphSmooth.hpp
|
|
yorick.hpp
|
|
growthFactor.hpp
|
|
)
|
|
|
|
include_directories(${GSL_INCLUDE_PATH} ${NETCDF_INCLUDE_PATH})
|
|
add_library(CosmoTool ${CosmoTool_SRCS})
|
|
target_link_libraries(CosmoTool ${NETCDF_LIBRARY} ${NETCDFCPP_LIBRARY} ${GSL_LIBRARY} ${GSLCBLAS_LIBRARY})
|
|
|
|
install(TARGETS CosmoTool
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib)
|
|
install(DIRECTORY . DESTINATION include/CosmoTool
|
|
FILES_MATCHING PATTERN "*.hpp")
|
|
install(DIRECTORY . DESTINATION include/CosmoTool
|
|
FILES_MATCHING PATTERN "*.tcc")
|