From dab1e41cbbdd9dc3589bfcf485de159c5495380f Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 3 May 2016 17:11:43 -0500 Subject: [PATCH] Revert "Merge pull request #2542 from davydden/cmake_user_projects" This reverts commit 1ed97ee3164e968e18b596b67895443b9d327a0d, reversing changes made to 6c7ecef6dd5a40583442ccaeb993779cffeca9cb. --- doc/users/cmakelists.html | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/doc/users/cmakelists.html b/doc/users/cmakelists.html index 730da4db1c..ecc73de2a8 100644 --- a/doc/users/cmakelists.html +++ b/doc/users/cmakelists.html @@ -39,7 +39,6 @@
  • File globs
  • DEAL_II_SETUP_TARGET revisited
  • DEAL_II_INITIALIZE_CACHED_VARIABLES revisited
  • -
  • Use only native CMake commands
  • Customizing include directories and compile definitions
  • External libraries
  • The "run" target revisited
  • @@ -530,30 +529,6 @@ href="#cmakeadvanced.setup_target">DEAL_II_SETUP_TARGET for further details.

    - -

    Use only native CMake commands

    - -

    -In order to have the ultimate flexibility, it is also possible to configure a -user project using only native CMake commands, that is avoid usage of -DEAL_II_INITIALIZE_CACHED_VARIABLES and DEAL_II_SETUP_TARGET macros. -This can be achieved, for example, by the following code -

    -CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
    -# Find and include deal.IIConfig.cmake
    -FIND_PACKAGE(deal.II 8.5.0 REQUIRED
    -  HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
    -  )
    -PROJECT(example)
    -
    -# Include deal.IITargets.cmake
    -INCLUDE(${DEAL_II_TARGET_CONFIG})
    -
    -ADD_EXECUTABLE(example example.src)
    -TARGET_LINK_LIBRARIES(example ${DEAL_II_TARGET})
    -
    -

    -

    Customizing include directories and compile definitions

    -- 2.39.5