Commit 0dc14992 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Some more configuration files.

parent 9e6f53e1
......@@ -14,7 +14,8 @@ PROJECT(ICET C)
# Set the current ICE-T version.
SET(ICET_MAJOR_VERSION 0)
SET(ICET_MINOR_VERSION 4)
SET(ICET_VERSION "${ICET_MAJOR_VERSION}.${ICET_MINOR_VERSION}")
SET(ICET_PATCH_VERSION 1)
SET(ICET_VERSION "${ICET_MAJOR_VERSION}.${ICET_MINOR_VERSION}.${ICET_PATCH_VERSION}")
# Set output paths.
SET(LIBRARY_OUTPUT_PATH ${ICET_BINARY_DIR}/bin CACHE PATH
......@@ -107,7 +108,26 @@ ENDIF (BUILD_TESTING)
# CMAKE_IMPORT_BUILD_SETTINGS(<build_file>)
INCLUDE(${CMAKE_ROOT}/Modules/CMakeExportBuildSettings.cmake)
CMAKE_EXPORT_BUILD_SETTINGS(${ICET_BINARY_DIR}/ICETBuildSettings.cmake)
INSTALL_FILES(${ICET_INSTALL_PREFIX}/lib .cmake ICETBuildSettings)
INSTALL_FILES(/lib .cmake ${ICET_BINARY_DIR}/ICETBuildSettings)
# Save ICE-T specific configuration options.
#First, configuration for build directory.
SET(ICET_INCLUDE_DIRS_CONFIG ${ICET_SOURCE_DIR}/src/include)
SET(ICET_LIBRARY_DIRS_CONFIG ${ICET_LIBRARY_DIR})
SET(ICET_USE_FILE_CONFIG ${ICET_SOURCE_DIR}/UseICET.cmake)
SET(ICET_BUILD_SETTINGS_FILE_CONFIG ${ICET_BINARY_DIR}/ICETBuildSettings.cmake)
CONFIGURE_FILE(${ICET_SOURCE_DIR}/ICETConfig.cmake.in
${ICET_BINARY_DIR}/ICETConfig.cmake @ONLY IMMEDIATE)
#Second, configuration for install directory.
SET(ICET_INCLUDE_DIRS_CONFIG ${CMAKE_INSTALL_PREFIX}/include)
SET(ICET_LIBRARY_DIRS_CONFIG ${CMAKE_INSTALL_PREFIX}/lib)
SET(ICET_USE_FILE_CONFIG ${CMAKE_INSTALL_PREFIX}/lib/UseICET.cmake)
SET(ICET_BUILD_SETTINGS_FILE_CONFIG
${CMAKE_INSTALL_PREFIX}/lib/ICETBuildSettings.cmake)
CONFIGURE_FILE(${ICET_SOURCE_DIR}/ICETConfig.cmake.in
${ICET_LIBRARY_DIR}/ICETConfig.cmake @ONLY IMMEDIATE)
INSTALL_FILES(/lib .cmake ${ICET_SOURCE_DIR}/UseICET
${ICET_LIBRARY_DIR}/ICETConfig)
# Allow local additions to this file without CVS conflicts.
INCLUDE(${ICET_BINARY_DIR}/LocalUserOptions.cmake OPTIONAL)
......
#-----------------------------------------------------------------------------
#
# ICETConfig.cmake - ICE-T CMake configuration file for external projects.
#
# This file is configured by ICE-T and used by the UseICET.cmake module
# to load ICE-T's settings for an external project.
#
## Copyright 2003 Sandia Coporation
## Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
## license for use of this work by or on behalf of the U.S. Government.
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that this Notice and any statement
## of authorship are reproduced on all copies.
#
# Id
#
# The ICE-T include file directories.
SET(ICET_INCLUDE_DIRS "@ICET_INCLUDE_DIRS_CONFIG@")
# The ICE-T library directories.
SET(ICET_LIBRARY_DIRS "@ICET_LIBRARY_DIRS_CONFIG@")
# The C and C++ flags added by ICE-T to the cmake-configured flags.
SET(ICET_REQUIRED_C_FLAGS "@ICET_REQUIRED_C_FLAGS@")
SET(ICET_REQUIRED_CXX_FLAGS "@ICET_REQUIRED_CXX_FLAGS@")
# The ICE-T version number
SET(ICET_MAJOR_VERSION "@ICET_MAJOR_VERSION@")
SET(ICET_MINOR_VERSION "@ICET_MINOR_VERSION@")
SET(ICET_PATCH_VERSION "@ICET_PATCH_VERSION@")
# The location of the UseICET.cmake file.
SET(ICET_USE_FILE "@ICET_USE_FILE_CONFIG@")
# The build settings file.
SET(ICET_BUILD_SETTINGS_FILE "@ICET_BUILD_SETTINGS_FILE_CONFIG@")
# MPI configuration used to build ICE-T.
SET(ICET_MPI_INCLUDE_PATH "@MPI_INCLUDE_PATH@")
SET(ICET_MPI_LIBRARY "@MPI_LIBRARY@")
SET(ICET_MPI_EXTRA_LIBRARY "@MPI_EXTRA_LIBRARY@")
SET(ICET_MPIRUN_EXE "@ICET_MPIRUN_EXE@")
SET(ICET_MPI_MAX_NUMPROCS "@ICET_MPI_MAX_NUMPROCS@")
SET(ICET_MPI_PREFLAGS "@ICET_MPI_PREFLAGS@")
SET(ICET_MPI_POSTFLAGS "@ICET_MPI_POSTFLAGS@")
# Other ICE-T configuration options.
SET(ICET_BUILD_SHARED_LIBS "@BUILD_SHARED_LIBS@")
SET(ICET_BUILD_TESTING "@BUILD_TESTING@")
#-----------------------------------------------------------------------------
#
# UseICET.cmake - File to INCLUDE in a CMakeLists.txt file to use ICE-T.
#
# After including this file, you need only to add icet, icet_strategies, and,
# perhaps, icet_mpi libraries with the LINK_LIBRARIES command.
#
## Copyright 2003 Sandia Coporation
## Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
## license for use of this work by or on behalf of the U.S. Government.
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that this Notice and any statement
## of authorship are reproduced on all copies.
#
# Id
#
#Load compiler settings used for ICE-T.
INCLUDE(${CMAKE_ROOT}/Modules/CMakeImportBuildSettings.cmake)
CMAKE_IMPORT_BUILD_SETTINGS(${ICET_BUILD_SETTINGS_FILE})
# Add compiler flags needed to use ICE-T.
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ICET_REQUIRED_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ICET_REQUIRED_CXX_FLAGS}")
# Add include directories needed to use ICE-T.
INCLUDE_DIRECTORIES(${ICET_INCLUDE_DIRS})
# Add link directories needed to use ICE-T.
LINK_DIRECTORIES(${ICET_LIBRARY_DIRS})
......@@ -47,6 +47,7 @@
#define ICET_MAJOR_VERSION @ICET_MAJOR_VERSION@
#define ICET_MINOR_VERSION @ICET_MINOR_VERSION@
#define ICET_PATCH_VERSION @ICET_PATCH_VERSION@
#define ICET_VERSION "@ICET_VERSION@"
#endif /*_ICET_CONFIG_H_*/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment