cosmotool/CMakeLists.txt

38 lines
1.3 KiB
CMake
Raw Normal View History

2010-09-12 21:09:39 +02:00
cmake_minimum_required(VERSION 2.6)
project(CosmoToolbox)
find_path(NETCDF_INCLUDE_PATH NAMES netcdf.h)
2010-09-12 21:36:37 +02:00
find_path(GSL_INCLUDE_PATH NAMES gsl/gsl_blas.h)
2010-09-12 21:09:39 +02:00
find_library(NETCDF_LIBRARY netcdf)
find_library(NETCDFCPP_LIBRARY netcdf_c++)
2010-09-12 21:36:37 +02:00
find_library(GSL_LIBRARY gsl)
find_library(GSLCBLAS_LIBRARY gslcblas)
2010-09-12 21:09:39 +02:00
include(FindPackageHandleStandardArgs)
set(NETCDF_FIND_REQUIRED TRUE)
2010-09-12 21:36:37 +02:00
set(GSL_FIND_REQUIRED TRUE)
2010-09-12 21:09:39 +02:00
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NetCDF DEFAULT_MSG NETCDF_LIBRARY NETCDFCPP_LIBRARY NETCDF_INCLUDE_PATH)
2010-09-12 21:36:37 +02:00
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GSL DEFAULT_MSG GSL_LIBRARY GSLCBLAS_LIBRARY GSL_INCLUDE_PATH)
2010-09-12 21:09:39 +02:00
2010-09-12 21:22:20 +02:00
# CPACK Configuration
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A toolbox for impatient cosmologists")
SET(CPACK_PACKAGE_VENDOR "Guilhem Lavaux")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENCE_CeCILL_V2")
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "0")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CosmoToolbox-${GalaxExplorer_VERSION_MAJOR}.${GalaxExplorer_VERSION_MINOR}")
SET(CPACK_STRIP_FILES "lib/libCosmoTool.so")
SET(CPACK_SOURCE_IGNORE_FILES
"/CVS/;/\\\\.git/;/\\\\.svn/;\\\\.swp$;\\\\.#;/#;.*~;cscope.*;/CMakeFiles/;.*\\\\.cmake;Makefile")
2010-09-12 21:09:39 +02:00
add_subdirectory(src)
2010-09-12 21:36:37 +02:00
add_subdirectory(sample)
2010-09-12 21:22:20 +02:00
include(CPack)