-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CMake install target for libROM * Add missing header file * Add -Wall to debug builds * Add option to build docs
- Loading branch information
Showing
2 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,14 +37,16 @@ option(USE_MFEM "Build libROM with MFEM" OFF) | |
option(MFEM_USE_GSLIB "Build libROM with MFEM using GSLIB" OFF) | ||
option(BUILD_STATIC "Build libROM as a static library" OFF) | ||
option(ENABLE_EXAMPLES "Build examples and regression tests" ON) | ||
option(ENABLE_DOCS "Build docs using Doxygen" OFF) | ||
|
||
## Set a bunch of variables to generate a configure header | ||
# Enable assertion checking if debug symbols generated | ||
if((CMAKE_BUILD_TYPE STREQUAL "Debug") OR | ||
(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")) | ||
set(DEBUG_CHECK_ASSERTIONS "1") | ||
endif((CMAKE_BUILD_TYPE STREQUAL "Debug") OR | ||
(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") | ||
endif() | ||
|
||
set(CAROM_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}") | ||
set(CAROM_VERSION_MINOR "${PROJECT_VERSION_MINOR}") | ||
|
@@ -107,8 +109,6 @@ find_package(MPI 1.2 REQUIRED) | |
|
||
find_package(ZLIB 1.2.3 REQUIRED) | ||
|
||
find_package(Doxygen 1.8.5) | ||
|
||
find_package(GTest 1.6.0) | ||
|
||
if (USE_MFEM) | ||
|
@@ -297,7 +297,9 @@ endif(GTEST_FOUND) | |
# NOTE([email protected], [email protected]): This code snippet | ||
# builds the Doxygen documentation, but outputs said documentation to | ||
# ${CMAKE_CURRENT_SOURCE_DIR}/docs)... | ||
if(DOXYGEN_FOUND) | ||
if(${ENABLE_DOCS}) | ||
find_package(Doxygen 1.8.5 REQUIRED) | ||
|
||
set(doxyfile ${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile) | ||
|
||
add_custom_target( | ||
|
@@ -316,4 +318,4 @@ if(DOXYGEN_FOUND) | |
${CMAKE_CURRENT_BINARY_DIR}/docs/html/rom.tag) | ||
add_dependencies(doxygen_tagfile documentation) | ||
|
||
endif(DOXYGEN_FOUND) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters