You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.7 KiB
47 lines
1.7 KiB
#
|
|
# A) Define your project name and set up major project options
|
|
#
|
|
|
|
# Must set the project name as a variable at very beginning before including anything else
|
|
# We set the project name in a separate file so CTest scripts can use it.
|
|
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/ProjectName.cmake)
|
|
|
|
SET(Seacas_ENABLE_Zoltan_DEFAULT ON)
|
|
SET(TRIBITS_HIDE_DEPRECATED_INCLUDE_DIRECTORIES_OVERRIDE TRUE)
|
|
|
|
# Define the TriBITS minimum required CMake version
|
|
SET(TRIBITS_CMAKE_MINIMUM_REQUIRED 3.17.0)
|
|
|
|
# CMake requires this be in the top file and not in an include file :-(
|
|
CMAKE_MINIMUM_REQUIRED(VERSION ${TRIBITS_CMAKE_MINIMUM_REQUIRED} FATAL_ERROR)
|
|
|
|
# CMake requires that you declare the CMake project in the top-level file and
|
|
# not in an include file :-(
|
|
PROJECT(${PROJECT_NAME} NONE)
|
|
|
|
if (${CMAKE_VERSION} GREATER_EQUAL "3.12")
|
|
cmake_policy(SET CMP0074 NEW)
|
|
endif()
|
|
|
|
#
|
|
# B) Pull in the TriBITS system and execute
|
|
#
|
|
|
|
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/cmake/tribits/TriBITS.cmake)
|
|
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/")
|
|
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${${PROJECT_NAME}_TRIBITS_DIR}/common_tpls/utils)
|
|
|
|
# Make Trilinos create <Package>Config.cmake files by default
|
|
SET(${PROJECT_NAME}_ENABLE_INSTALL_CMAKE_CONFIG_FILES_DEFAULT ON)
|
|
# Make Trilinos set up CPack support by default
|
|
SET(${PROJECT_NAME}_ENABLE_CPACK_PACKAGING_DEFAULT ON)
|
|
# Don't allow disabled subpackages to be excluded from tarball
|
|
SET(${PROJECT_NAME}_EXCLUDE_DISABLED_SUBPACKAGES_FROM_DISTRIBUTION_DEFAULT FALSE)
|
|
|
|
SET(TPL_ENABLE_Pthread OFF CACHE BOOL "")
|
|
|
|
OPTION(Seacas_ENABLE_DOXYGEN "Enable Doxygen documentation creation." OFF)
|
|
|
|
# Do all of the processing for this Tribits project
|
|
TRIBITS_PROJECT()
|
|
|
|
|