08fd80756a
Approved by: stephen (maintainer)
62 lines
2.7 KiB
Text
62 lines
2.7 KiB
Text
--- CMakeLists.txt.orig 2012-03-03 00:03:38.000000000 +0100
|
|
+++ CMakeLists.txt 2012-03-03 16:05:27.000000000 +0100
|
|
@@ -63,6 +63,7 @@
|
|
option(ENABLE_TETGEN_NEW "Enable experimental version of Tetgen" OFF)
|
|
option(ENABLE_WRAP_JAVA "Build Java wrappers" OFF)
|
|
option(ENABLE_WRAP_PYTHON "Build Python wrappers" ${DEFAULT})
|
|
+option(INSTALL_DOCS "Install the docs (FreeBSD only)" ON)
|
|
|
|
set(GMSH_MAJOR_VERSION 2)
|
|
set(GMSH_MINOR_VERSION 5)
|
|
@@ -671,13 +672,16 @@
|
|
endif(NOT HAVE_METIS)
|
|
find_library(TAUCS_LIB taucs PATH_SUFFIXES lib)
|
|
if(TAUCS_LIB)
|
|
- find_path(TAUCS_INC "taucs.h" PATH_SUFFIXES src include taucs)
|
|
- if(TAUCS_INC)
|
|
- set_config_option(HAVE_TAUCS "Taucs")
|
|
- add_definitions(-DTAUCS_CILK)
|
|
- list(APPEND EXTERNAL_LIBRARIES ${TAUCS_LIB})
|
|
- list(APPEND EXTERNAL_INCLUDES ${TAUCS_INC})
|
|
- endif(TAUCS_INC)
|
|
+ find_library(COMPAT_LIB compat)
|
|
+ if (COMPAT_LIB)
|
|
+ find_path(TAUCS_INC "taucs.h" PATH_SUFFIXES src include taucs)
|
|
+ if(TAUCS_INC)
|
|
+ set_config_option(HAVE_TAUCS "Taucs")
|
|
+ add_definitions(-DTAUCS_CILK)
|
|
+ list(APPEND EXTERNAL_LIBRARIES ${TAUCS_LIB})
|
|
+ list(APPEND EXTERNAL_INCLUDES ${TAUCS_INC})
|
|
+ endif(TAUCS_INC)
|
|
+ endif(COMPAT_LIB)
|
|
endif(TAUCS_LIB)
|
|
endif(ENABLE_TAUCS)
|
|
|
|
@@ -819,7 +823,7 @@
|
|
list(LENGTH OCC_LIBS NUM_OCC_LIBS)
|
|
if(NUM_OCC_LIBS EQUAL NUM_OCC_LIBS_REQUIRED)
|
|
find_path(OCC_INC "BRep_Tool.hxx" PATHS ENV CASROOT PATH_SUFFIXES inc
|
|
- include include/oce opencascade)
|
|
+ include include/oce opencascade OpenCAS/ros/inc)
|
|
if(OCC_INC)
|
|
set_config_option(HAVE_OCC "OpenCascade")
|
|
list(APPEND EXTERNAL_LIBRARIES ${OCC_LIBS})
|
|
@@ -1117,11 +1121,13 @@
|
|
install(TARGETS gmsh DESTINATION ${GMSH_BIN} OPTIONAL)
|
|
install(TARGETS lib shared DESTINATION lib OPTIONAL)
|
|
install(FILES ${GMSH_API} DESTINATION include/gmsh)
|
|
-install(FILES ${WELCOME_FILE} DESTINATION ${GMSH_DOC} RENAME README.txt)
|
|
-install(FILES ${LICENSE_FILE} DESTINATION ${GMSH_DOC})
|
|
-install(FILES ${CREDITS_FILE} DESTINATION ${GMSH_DOC})
|
|
-install(FILES ${TUTORIAL_FILES} DESTINATION ${GMSH_DOC}/tutorial)
|
|
-install(FILES ${DEMO_FILES} DESTINATION ${GMSH_DOC}/demos)
|
|
+if(INSTALL_DOCS)
|
|
+ install(FILES ${WELCOME_FILE} DESTINATION ${GMSH_DOC} RENAME README.txt)
|
|
+ install(FILES ${LICENSE_FILE} DESTINATION ${GMSH_DOC})
|
|
+ install(FILES ${CREDITS_FILE} DESTINATION ${GMSH_DOC})
|
|
+ install(FILES ${TUTORIAL_FILES} DESTINATION ${GMSH_DOC}/tutorial)
|
|
+ install(FILES ${DEMO_FILES} DESTINATION ${GMSH_DOC}/demos)
|
|
+endif(INSTALL_DOCS)
|
|
if(UNIX AND NOT CYGWIN)
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/doc/gmsh.1 DESTINATION ${GMSH_MAN})
|
|
endif(UNIX AND NOT CYGWIN)
|