From dab1e41cbbdd9dc3589bfcf485de159c5495380f Mon Sep 17 00:00:00 2001
From: Matthias Maier DEAL_II_SETUP_TARGET
revisitedDEAL_II_INITIALIZE_CACHED_VARIABLES
revisitedDEAL_II_SETUP_TARGET
for further details.
-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}) -- -