Fixed conflict
This commit is contained in:
commit
7b5b1d5002
4 changed files with 21 additions and 5 deletions
|
@ -46,7 +46,7 @@ SET(CosmoTool_SRCS ${CosmoTool_SRCS}
|
|||
growthFactor.hpp
|
||||
)
|
||||
|
||||
include_directories(${GSL_INCLUDE_PATH} ${NETCDF_INCLUDE_PATH})
|
||||
include_directories(${GSL_INCLUDE_PATH} ${NETCDF_INCLUDE_PATH} ${NETCDFCPP_INCLUDE_PATH} ${CMAKE_BINARY_DIR}/src)
|
||||
|
||||
set(CosmoTool_LIBS ${NETCDF_LIBRARY} ${NETCDFCPP_LIBRARY} ${GSL_LIBRARIES})
|
||||
if (HDF5_FOUND)
|
||||
|
@ -54,6 +54,9 @@ if (HDF5_FOUND)
|
|||
include_directories(${HDF5_INCLUDE_DIRS})
|
||||
endif (HDF5_FOUND)
|
||||
|
||||
message("${CosmoTool_LIBS}")
|
||||
set(CosmoTool_LIBS ${CosmoTool_LIBS} PARENT_SCOPE)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library(CosmoTool SHARED ${CosmoTool_SRCS})
|
||||
target_link_libraries(CosmoTool ${CosmoTool_LIBS})
|
||||
|
@ -62,7 +65,7 @@ if (BUILD_SHARED_LIBS)
|
|||
add_library(CosmoTool_static STATIC ${CosmoTool_SRCS})
|
||||
endif(BUILD_STATIC_LIBS)
|
||||
else (BUILD_SHARED_LIBS)
|
||||
add_library(CosmoTool STATIC ${CosmoTool_LIBS})
|
||||
add_library(CosmoTool STATIC ${CosmoTool_SRCS})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
install(TARGETS CosmoTool
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
#include "ctool_netcdf_ver.hpp"
|
||||
#include "config.hpp"
|
||||
#ifdef NETCDFCPP4
|
||||
#include <netcdf>
|
||||
using namespace netCDF
|
||||
#else
|
||||
#include <netcdfcpp.h>
|
||||
#endif
|
||||
#include <fstream>
|
||||
#include "yorick.hpp"
|
||||
#include <assert.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue