From a0c601f4846d0ce44ec31f174dd27940520b4c58 Mon Sep 17 00:00:00 2001 From: maier Date: Fri, 5 Oct 2012 16:15:49 +0000 Subject: [PATCH] Update documentation git-svn-id: https://svn.dealii.org/branches/branch_cmake@26971 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/README.CMAKE | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/deal.II/README.CMAKE b/deal.II/README.CMAKE index 2753f246a3..00ffbe4aa6 100644 --- a/deal.II/README.CMAKE +++ b/deal.II/README.CMAKE @@ -505,16 +505,19 @@ How to use deal.II in your cmake project will be set and not the one determined in PROJECT(...)will be set and not the one determined in PROJECT(...) + - Import the deal.II library as an external target: + + IMPORT(${DEAL_II_TARGET_CONFIG}) + - After defining your targets, e.g. ADD_EXECUTABLE(step-1 step-1.cc) - we have to specify to link against deal.II and all external - libraries: + we have to specify to link against deal.II (and transitively all + external libraries): TARGET_LINK_LIBRARIES(step-1 - ${DEAL_II_LIBRARIES} - ${DEAL_II_EXTERNAL_LIBRARIES} + ${DEAL_II_TARGET_DEBUG} # or DEAL_II_TARGET_RELEASE ) - As well as using some preprocessor definitions: -- 2.39.5