"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cgnstools/CMakeLists.txt" between
CGNS-4.1.0.tar.gz and CGNS-4.1.1.tar.gz

About: The CGNS (CFD General Notation System) provides a standard for recording and recovering computer data associated with the numerical solution of fluid dynamics equations.

CMakeLists.txt  (CGNS-4.1.0):CMakeLists.txt  (CGNS-4.1.1)
############# #############
# cgnstools # # cgnstools #
############# #############
# get X11 in case it is not in a standard location # get X11 in case it is not in a standard location
if (NOT WIN32) if (NOT WIN32)
include(FindX11) include(FindX11)
find_package(X11 REQUIRED)
# Xmu doesn't appear to be included in FindX11 # Xmu doesn't appear to be included in FindX11
find_library(X11_Xmu_LIB Xmu) find_library(X11_Xmu_LIB Xmu)
if (X11_Xmu_LIB) if (X11_Xmu_LIB)
mark_as_advanced(FORCE X11_Xmu_LIB) mark_as_advanced(FORCE X11_Xmu_LIB)
endif (X11_Xmu_LIB) endif (X11_Xmu_LIB)
endif (NOT WIN32) endif (NOT WIN32)
if (WIN32) if (WIN32)
include(FindHTMLHelp) include(FindHTMLHelp)
endif (WIN32) endif (WIN32)
include(FindTCL)
include(FindOpenGL)
set(Missing "") set(Missing "")
if (NOT APPLE)
include(FindOpenGL)
if (OPENGL_FOUND)
mark_as_advanced(FORCE OPENGL_INCLUDE_PATH OPENGL_gl_LIBRARY)
else (OPENGL_FOUND)
mark_as_advanced(CLEAR OPENGL_INCLUDE_PATH OPENGL_gl_LIBRARY)
list(APPEND Missing "OPENGL_gl")
endif (OPENGL_FOUND)
if (OPENGL_GLU_FOUND)
mark_as_advanced(FORCE OPENGL_glu_LIBRARY)
else (OPENGL_GLU_FOUND)
mark_as_advanced(CLEAR OPENGL_glu_LIBRARY)
list(APPEND Missing "OPENGL_glu")
endif (OPENGL_GLU_FOUND)
endif ()
if (X11_FOUND)
if (APPLE)
find_path (X11_GL_INCLUDE_PATH GL/glx.h ${X11_INC_SEARCH_PATH})
if (NOT X11_GL_INCLUDE_PATH)
list(APPEND Missing "GL/glx.h")
set (X11_FOUND FALSE)
endif (NOT X11_GL_INCLUDE_PATH)
set (X11_INCLUDE_DIR ${X11_INCLUDE_DIR} ${X11_GL_INCLUDE_PATH})
find_library (X11_GL_LIB GL ${X11_LIB_SEARCH_PATH})
if (NOT X11_GL_LIB)
list(APPEND Missing "OPENGL_gl")
set (X11_FOUND FALSE)
endif (NOT X11_GL_LIB)
find_library (X11_GLU_LIB GLU ${X11_LIB_SEARCH_PATH})
if (NOT X11_GLU_LIB)
list(APPEND Missing "OPENGL_glu")
set (X11_FOUND FALSE)
endif (NOT X11_GLU_LIB)
else ()
set (X11_INCLUDE_DIR ${X11_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
set (X11_GL_LIB ${OPENGL_gl_LIBRARY})
set (X11_GLU_LIB ${OPENGL_glu_LIBRARY})
endif ()
endif (X11_FOUND)
include(FindTCL)
if (TCL_FOUND) if (TCL_FOUND)
mark_as_advanced(FORCE TCL_INCLUDE_PATH TCL_LIBRARY) mark_as_advanced(FORCE TCL_INCLUDE_PATH TCL_LIBRARY)
else (TCL_FOUND) else (TCL_FOUND)
mark_as_advanced(CLEAR TCL_INCLUDE_PATH TCL_LIBRARY) mark_as_advanced(CLEAR TCL_INCLUDE_PATH TCL_LIBRARY)
list(APPEND Missing "TCL") list(APPEND Missing "TCL")
endif (TCL_FOUND) endif (TCL_FOUND)
if (TK_FOUND) if (TK_FOUND)
mark_as_advanced(FORCE TK_INCLUDE_PATH TK_LIBRARY) mark_as_advanced(FORCE TK_INCLUDE_PATH TK_LIBRARY)
else (TK_FOUND) else (TK_FOUND)
mark_as_advanced(CLEAR TK_INCLUDE_PATH TK_LIBRARY) mark_as_advanced(CLEAR TK_INCLUDE_PATH TK_LIBRARY)
list(APPEND Missing "TK") list(APPEND Missing "TK")
endif (TK_FOUND) endif (TK_FOUND)
if (OPENGL_FOUND)
mark_as_advanced(FORCE OPENGL_INCLUDE_PATH OPENGL_gl_LIBRARY)
else (OPENGL_FOUND)
mark_as_advanced(CLEAR OPENGL_INCLUDE_PATH OPENGL_gl_LIBRARY)
list(APPEND Missing "OPENGL_gl")
endif (OPENGL_FOUND)
if (OPENGL_GLU_FOUND)
mark_as_advanced(FORCE OPENGL_glu_LIBRARY)
else (OPENGL_GLU_FOUND)
mark_as_advanced(CLEAR OPENGL_glu_LIBRARY)
list(APPEND Missing "OPENGL_glu")
endif (OPENGL_GLU_FOUND)
if (Missing) if (Missing)
message(SEND_ERROR "The path and library needs to be defined for: message(SEND_ERROR "The path and library needs to be defined for:
${Missing}") ${Missing}")
else (Missing) else (Missing)
add_subdirectory(cgnsview) add_subdirectory(cgnsview)
add_subdirectory(calclib) add_subdirectory(calclib)
add_subdirectory(cgnscalc) add_subdirectory(cgnscalc)
add_subdirectory(cgnsplot) add_subdirectory(cgnsplot)
add_subdirectory(common) add_subdirectory(common)
add_subdirectory(tkogl) add_subdirectory(tkogl)
 End of changes. 4 change blocks. 
17 lines changed or deleted 44 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)