MorseInit.cmake 1.98 KB
Newer Older
1 2 3 4 5
###
#
# @copyright (c) 2009-2014 The University of Tennessee and The University
#                          of Tennessee Research Foundation.
#                          All rights reserved.
6
# @copyright (c) 2012-2018 Inria. All rights reserved.
7 8 9 10 11 12 13 14 15 16 17 18 19 20
# @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
#
###
#
#  @file MorseInit.cmake
#
#  @project MORSE
#  MORSE is a software package provided by:
#     Inria Bordeaux - Sud-Ouest,
#     Univ. of Tennessee,
#     King Abdullah Univesity of Science and Technology
#     Univ. of California Berkeley,
#     Univ. of Colorado Denver.
#
21
#  @version 1.0.0
22 23 24 25 26 27 28 29
#  @author Cedric Castagnede
#  @author Emmanuel Agullo
#  @author Mathieu Faverge
#  @author Florent Pruvost
#  @date 13-07-2012
#
###

30 31 32 33 34 35 36 37 38
# Global Morse options
option(MORSE_ENABLE_WARNING       "Enable warning messages" OFF)
option(MORSE_ENABLE_COVERAGE      "Enable flags for coverage test" OFF)
option(MORSE_ENABLE_COLOR_MESSAGE "Enable colors in messages" OFF)
#option(MORSE_VERBOSE_FIND_PACKAGE "Add additional messages concerning packages not found" OFF)
#message(STATUS "MORSE_VERBOSE_FIND_PACKAGE is set to OFF, turn it ON to get"
#        "   information about packages not found")


39 40 41
# This include is required to check symbols of libs in the main CMakeLists.txt
include(CheckFunctionExists)

42 43 44 45 46 47 48
# This include is required to check defines in headers
include(CheckIncludeFiles)

if (MORSE_ENABLE_COLOR_MESSAGE)
  # colorize messages
  include(ColorizeMessage)
endif()
49 50 51 52 53 54 55 56 57 58 59

# To find headers and libs
include(FindHeadersAndLibs)

# Some macros to print status when search for headers and libs
# PrintFindStatus.cmake is in cmake_modules/morse/find directory
include(PrintFindStatus)

# Define some auxilary flags
include(AuxilaryFlags)

60 61 62
# Define some variables to et info about ressources
include(Ressources)

63 64 65 66 67 68
# Add the path where we handle our FindFOO.cmake to seek for liraries
list(APPEND CMAKE_MODULE_PATH ${MORSE_CMAKE_MODULE_PATH}/find)

##
## @end file MorseInit.cmake
##