Skip to content

Commit 1d5b90b

Browse files
author
Matthew Emmett
committed
cmake: Restore and flesh out comments.
1 parent acd3cc8 commit 1d5b90b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ list(APPEND CMAKE_MODULE_PATH ${pfasst_SOURCE_DIR}/cmake)
55
include(cmake/utility_functions.cmake)
66
include(CheckCXXCompilerFlag)
77
include(ExternalProject)
8+
9+
# Set default ExternalProject root directory
810
set_directory_properties(PROPERTIES EP_PREFIX ${CMAKE_BINARY_DIR}/3rdparty)
911

1012
option(pfasst_DISABLE_LIBCXX "Disable use of LLVM's libc++ when compiling with Clang." ON )
1113
option(pfasst_BUILD_EXAMPLES "Build example programs." ON )
1214
option(pfasst_BUILD_TESTS "Build test suite for PFASST." ON )
1315
option(pfasst_WITH_MPI "Build with MPI enabled." OFF)
1416

17+
# Set output directories
1518
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${pfasst_SOURCE_DIR}/dist/bin")
1619
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${pfasst_SOURCE_DIR}/dist/lib")
1720
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${pfasst_SOURCE_DIR}/dist/lib")
@@ -59,6 +62,7 @@ else()
5962
endif()
6063
message(STATUS "Your compiler has C++11 support. Hurray!")
6164

65+
# Enable all compiler warnings
6266
add_to_string_list("${CMAKE_CXX_FLAGS}" CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic")
6367

6468
set(3rdparty_INCLUDES)
@@ -70,8 +74,14 @@ if(pfasst_BUILD_TESTS)
7074
enable_testing()
7175
endif(pfasst_BUILD_TESTS)
7276

77+
# Add / include 3rd-party libraries
7378
message(STATUS "********************************************************************************")
7479
message(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)
7585
add_subdirectory(3rdparty)
7686

7787
message(STATUS "********************************************************************************")

0 commit comments

Comments
 (0)