@@ -11,10 +11,10 @@ include(ExternalProject)
1111set_directory_properties (PROPERTIES EP_PREFIX ${CMAKE_BINARY_DIR} /3rdparty)
1212
1313option (pfasst_DISABLE_LIBCXX "Disable use of LLVM's libstdc++ when compiling with Clang." ON )
14+ option (pfasst_BUILD_EXAMPLES "Build example programs." ON )
1415option (pfasst_BUILD_TESTS "Build test suite for PFASST." ON )
1516
1617# check for C++11 support
17- message (STATUS "Testing Compiler for C++11 Support ..." )
1818if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
1919 check_cxx_compiler_flag(-std=c++11 HAVE_STD11)
2020 if (HAVE_STD11)
@@ -55,12 +55,21 @@ endif(pfasst_BUILD_TESTS)
5555# adding / including 3rd-party libraries
5656message (STATUS "********************************************************************************" )
5757message (STATUS "Configuring 3rd party libraries" )
58+ # makes available:
59+ # - fftw3_INCLUDES (if pfasst_BUILD_EXAMPLES)
60+ # - fftw3_LIBS (if pfasst_BUILD_EXAMPLES)
5861add_subdirectory (3rdparty)
5962
6063message (STATUS "********************************************************************************" )
6164message (STATUS "Configuring sources" )
6265add_subdirectory (src)
6366
67+ if (pfasst_BUILD_EXAMPLES)
68+ message (STATUS "********************************************************************************" )
69+ message (STATUS "Configuring examples" )
70+ add_subdirectory (examples)
71+ endif ()
72+
6473if (pfasst_BUILD_TESTS)
6574 message (STATUS "********************************************************************************" )
6675 message (STATUS "Configuring tests" )
@@ -71,5 +80,3 @@ message(STATUS "****************************************************************
7180message (STATUS "C++ Compiler ID: ${CMAKE_CXX_COMPILER_ID} " )
7281message (STATUS "C++ Flags: ${CMAKE_CXX_FLAGS} " )
7382message (STATUS "C++ link flags: ${CMAKE_CXX_LINK_FLAGS} " )
74-
75- set (CMAKE_VERBOSE_MAKEFILE ON )
0 commit comments