"Fossies" - the Fresh Open Source Software Archive

Member "dune-typetree-2.8.0/CMakeLists.txt" (31 Aug 2021, 788 Bytes) of package /linux/misc/dune/dune-typetree-2.8.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # set up project
    2 project("dune-typetree" C CXX)
    3 
    4 # general stuff
    5 cmake_minimum_required(VERSION 3.1.0)
    6 
    7 if(NOT (dune-common_DIR OR dune-common_ROOT OR
    8         "${CMAKE_PREFIX_PATH}" MATCHES ".*dune-common.*"))
    9     string(REPLACE  ${CMAKE_PROJECT_NAME} dune-common dune-common_DIR
   10       ${PROJECT_BINARY_DIR})
   11 endif()
   12 
   13 #find dune-common and set the module path
   14 find_package(dune-common REQUIRED)
   15 list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH}
   16   "${PROJECT_SOURCE_DIR}/cmake/modules")
   17 
   18 #include the dune macros
   19 include(DuneMacros)
   20 
   21 # start a dune project with information from dune.module
   22 dune_project()
   23 
   24 add_subdirectory(doc)
   25 add_subdirectory(dune)
   26 add_subdirectory(test)
   27 
   28 # finalize the dune project, e.g. generating config.h etc.
   29 finalize_dune_project(GENERATE_CONFIG_H_CMAKE)