]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Enhance example CMakeLists.txt
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Oct 2012 10:14:20 +0000 (10:14 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Oct 2012 10:14:20 +0000 (10:14 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27173 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-1/CMakeLists.txt

index cb6eada9653d996b8d6048f34669cee748b0219b..919393549c600549528405670bc848809d10d8e2 100644 (file)
@@ -1,18 +1,23 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
 
-FIND_PACKAGE(deal.II CONFIG REQUIRED
+FIND_PACKAGE(deal.II 8.0 REQUIRED
   HINTS
     "../../"
     "../../../../../"
+    $ENV{DEAL_DIR}
+    $ENV{DEAL_II_DIR}
   )
-
 DEAL_II_INITIALIZE_CACHED_VARIABLES()
 
 PROJECT(step-1)
 
 ADD_EXECUTABLE(step-1 step-1.cc)
-
 DEAL_II_SETUP_TARGET(step-1)
 
-ADD_CUSTOM_TARGET(run COMMAND step-1)
-
+ADD_CUSTOM_TARGET(run
+  COMMAND step-1
+  )
+ADD_CUSTOM_TARGET(distclean
+  COMMAND make clean
+  COMMAND rm -f *gmv *gnuplot *gpl *eps *pov *vtk *ucd *.d2
+  )

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.