⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 findx11.cmake

📁 InsightToolkit-1.4.0(有大量的优化算法程序)
💻 CMAKE
字号:
#
# try to find X11 on UNIX systems.
#
# The following values are defined
# X11_INCLUDE_DIR  - where to find X11.h
# X11_LIBRARIES    - link against these to use X11
# X11_FOUND        - True if X11 is available
# X11_Xext_FOUND   - True if the X11 extensions are available.

IF (UNIX)
  
  FIND_PATH(X11_INCLUDE_DIR X11/X.h
    /usr/include 
    /usr/local/include 
    /usr/openwin/include 
    /usr/openwin/share/include 
    /usr/X11R6/include 
    /usr/include/X11
    /opt/graphics/OpenGL/include
  )


  FIND_LIBRARY(X11_X11_LIBRARY X11
    /usr/lib 
    /usr/local/lib 
    /usr/openwin/lib 
    /usr/X11R6/lib
  )

  FIND_LIBRARY(X11_Xext_LIBRARY Xext
    /usr/lib 
    /usr/local/lib 
    /usr/openwin/lib 
    /usr/X11R6/lib
  )

  IF(X11_INCLUDE_DIR)

    IF(X11_X11_LIBRARY)
      SET( X11_FOUND "YES" )
      SET( X11_LIBRARIES ${X11_X11_LIBRARY} )
    ENDIF(X11_X11_LIBRARY)

    IF(X11_Xext_LIBRARY)
      SET( X11_LIBRARIES ${X11_LIBRARIES} ${X11_Xext_LIBRARY} )
      SET( X11_Xext_FOUND "YES")
    ENDIF(X11_Xext_LIBRARY)

  ENDIF(X11_INCLUDE_DIR)

  # Deprecated variable fro backwards compatibility with CMake 1.4
  SET (X11_LIBRARY ${X11_X11_LIBRARY})

MARK_AS_ADVANCED(
  X11_X11_LIBRARY
  X11_Xext_LIBRARY
  X11_INCLUDE_DIR
)

ENDIF (UNIX)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -