Transformed to CMake makefile

This commit is contained in:
Guilhem Lavaux 2010-09-12 21:09:39 +02:00
parent aac070e39f
commit f9bb9c64c5
6 changed files with 178 additions and 119 deletions

16
CMakeLists.txt Normal file
View file

@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 2.6)
project(CosmoToolbox)
find_path(NETCDF_INCLUDE_PATH NAMES netcdf.h)
find_library(NETCDF_LIBRARY netcdf)
find_library(NETCDFCPP_LIBRARY netcdf_c++)
include(FindPackageHandleStandardArgs)
set(NETCDF_FIND_REQUIRED TRUE)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NetCDF DEFAULT_MSG NETCDF_LIBRARY NETCDFCPP_LIBRARY NETCDF_INCLUDE_PATH)
add_subdirectory(src)