From 92017fac5893fe3e6db9b294c0ea0aabbf66c735 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 26 Jul 2010 14:11:38 +0000 Subject: [PATCH] have mesh --- CMakeLists.txt | 61 +++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d36e51e4d0..bfdf520a7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -488,36 +488,37 @@ if(ENABLE_METIS) "licensing requirements stated in contrib/Metis/README.txt.") endif(ENABLE_METIS) -if(ENABLE_NETGEN) - add_subdirectory(contrib/Netgen) - include_directories(contrib/Netgen contrib/Netgen/libsrc/include - contrib/Netgen/libsrc/interface) - set_config_option(HAVE_NETGEN "Netgen") - add_definitions(-DNO_PARALLEL_THREADS) -endif(ENABLE_NETGEN) - -if(ENABLE_BAMG) - add_subdirectory(contrib/bamg) - include_directories(contrib/bamg contrib/bamg/bamglib) - set_config_option(HAVE_BAMG "Bamg") -endif(ENABLE_BAMG) - - -if(ENABLE_TETGEN_NEW AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/TetgenNew/tetgen.h) - add_subdirectory(contrib/TetgenNew) - include_directories(contrib/TetgenNew) - set_config_option(HAVE_TETGEN "Tetgen(New)") - add_definitions(-DTETLIBRARY) - message("WARNING: You are including an experimental version of Tetgen " - "that is KNOWN TO BE BUGGY on 64 bits archs and on WIN32/MSVC.") -elseif(ENABLE_TETGEN AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/Tetgen/tetgen.h) - add_subdirectory(contrib/Tetgen) - include_directories(contrib/Tetgen) - set_config_option(HAVE_TETGEN "Tetgen") - add_definitions(-DTETLIBRARY) - message("WARNING: By including Tetgen you have to comply with Tetgen's " - "special licensing requirements stated in contrib/Tetgen/LICENSE.") -endif(ENABLE_TETGEN_NEW AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/TetgenNew/tetgen.h) +if(HAVE_MESH) + if(ENABLE_NETGEN) + add_subdirectory(contrib/Netgen) + include_directories(contrib/Netgen contrib/Netgen/libsrc/include + contrib/Netgen/libsrc/interface) + set_config_option(HAVE_NETGEN "Netgen") + add_definitions(-DNO_PARALLEL_THREADS) + endif(ENABLE_NETGEN) + + if(ENABLE_BAMG) + add_subdirectory(contrib/bamg) + include_directories(contrib/bamg contrib/bamg/bamglib) + set_config_option(HAVE_BAMG "Bamg") + endif(ENABLE_BAMG) + + if(ENABLE_TETGEN_NEW AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/TetgenNew/tetgen.h) + add_subdirectory(contrib/TetgenNew) + include_directories(contrib/TetgenNew) + set_config_option(HAVE_TETGEN "Tetgen(New)") + add_definitions(-DTETLIBRARY) + message("WARNING: You are including an experimental version of Tetgen " + "that is KNOWN TO BE BUGGY on 64 bits archs and on WIN32/MSVC.") + elseif(ENABLE_TETGEN AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/Tetgen/tetgen.h) + add_subdirectory(contrib/Tetgen) + include_directories(contrib/Tetgen) + set_config_option(HAVE_TETGEN "Tetgen") + add_definitions(-DTETLIBRARY) + message("WARNING: By including Tetgen you have to comply with Tetgen's " + "special licensing requirements stated in contrib/Tetgen/LICENSE.") + endif(ENABLE_TETGEN_NEW AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/TetgenNew/tetgen.h) +endif(HAVE_MESH) if(ENABLE_FOURIER_MODEL) find_library(FFTW3_LIB fftw3) -- GitLab