From: maier Date: Tue, 23 Oct 2012 15:28:06 +0000 (+0000) Subject: A minimalistic example of a user CMakeLists.txt X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1970d02beff114b0065656247c2bd4a8e7561b2e;p=dealii-svn.git A minimalistic example of a user CMakeLists.txt git-svn-id: https://svn.dealii.org/branches/branch_cmake@27184 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-2/CMakeLists.txt b/deal.II/examples/step-2/CMakeLists.txt index 0c3c0a53a6..b68f6b4ddf 100644 --- a/deal.II/examples/step-2/CMakeLists.txt +++ b/deal.II/examples/step-2/CMakeLists.txt @@ -1,11 +1,14 @@ +# +# A minimalistic CMakeLists.txt example for a small project using the +# deal.II library: +# + CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) FIND_PACKAGE(deal.II 8.0 REQUIRED HINTS - "../../" - "../../../../../" - $ENV{DEAL_DIR} - $ENV{DEAL_II_DIR} + ../ ../../ ../../../ ../../../../../ + $ENV{DEAL_II_DIR} $ENV{DEAL_DIR} ) DEAL_II_INITIALIZE_CACHED_VARIABLES() @@ -14,10 +17,3 @@ PROJECT(step-2) ADD_EXECUTABLE(step-2 step-2.cc) DEAL_II_SETUP_TARGET(step-2) -ADD_CUSTOM_TARGET(run - COMMAND step-2 - ) -ADD_CUSTOM_TARGET(distclean - COMMAND make clean - COMMAND rm -f *gmv *gnuplot *gpl *eps *pov *vtk *ucd *.d2 - )