@@ -5,13 +5,16 @@ list(APPEND CMAKE_MODULE_PATH ${pfasst_SOURCE_DIR}/cmake)
55include (cmake/utility_functions.cmake)
66include (CheckCXXCompilerFlag)
77include (ExternalProject)
8+
9+ # Set default ExternalProject root directory
810set_directory_properties (PROPERTIES EP_PREFIX ${CMAKE_BINARY_DIR} /3rdparty)
911
1012option (pfasst_DISABLE_LIBCXX "Disable use of LLVM's libc++ when compiling with Clang." ON )
1113option (pfasst_BUILD_EXAMPLES "Build example programs." ON )
1214option (pfasst_BUILD_TESTS "Build test suite for PFASST." ON )
1315option (pfasst_WITH_MPI "Build with MPI enabled." OFF )
1416
17+ # Set output directories
1518set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${pfasst_SOURCE_DIR} /dist/bin" )
1619set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${pfasst_SOURCE_DIR} /dist/lib" )
1720set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${pfasst_SOURCE_DIR} /dist/lib" )
5962endif ()
6063message (STATUS "Your compiler has C++11 support. Hurray!" )
6164
65+ # Enable all compiler warnings
6266add_to_string_list("${CMAKE_CXX_FLAGS} " CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic" )
6367
6468set (3rdparty_INCLUDES)
@@ -70,8 +74,14 @@ if(pfasst_BUILD_TESTS)
7074 enable_testing ()
7175endif (pfasst_BUILD_TESTS)
7276
77+ # Add / include 3rd-party libraries
7378message (STATUS "********************************************************************************" )
7479message (STATUS "Configuring 3rd party libraries" )
80+ # makes available:
81+ # - Boost headers in 3rdparty_INCLUDES
82+ # - Google test and mock headers in 3rdparty_INCLUDES (if pfasst_BUILD_TESTS)
83+ # - FFTW_INCLUDE_PATH (if pfasst_BUILD_EXAMPLES)
84+ # - FFTW_LIBRARIES (if pfasst_BUILD_EXAMPLES)
7585add_subdirectory (3rdparty)
7686
7787message (STATUS "********************************************************************************" )
0 commit comments