"Fossies" - the Fresh Open Source Software Archive

Member "dune-geometry-2.6.0/CMakeLists.txt" (28 Mar 2018, 751 Bytes) of package /linux/misc/dune/dune-geometry-2.6.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. See also the latest Fossies "Diffs" side-by-side code changes reports for "CMakeLists.txt": 2.6.0rc1_vs_2.6.0 or 2.5.1_vs_2.6.0.

    1 # set up project
    2 project("dune-geometry" C CXX)
    3 
    4 # general stuff
    5 cmake_minimum_required(VERSION 3.1)
    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 
   17 #include the dune macros
   18 include(DuneMacros)
   19 
   20 # start a dune project with information from dune.module
   21 dune_project()
   22 
   23 add_subdirectory("dune")
   24 add_subdirectory("doc")
   25 add_subdirectory("lib")
   26 
   27 # finalize the dune project, e.g. generating config.h etc.
   28 finalize_dune_project(GENERATE_CONFIG_H_CMAKE)