0025162: Visualization, TKOpenGl - drop GLU library dependency
[occt.git] / src / TKOpenGl / CMakeLists.txt
CommitLineData
19286d7c 1project(TKOpenGl)
2
3set (TOOLKIT_MODULES
4 OpenGl
5)
6
7if (WIN32)
8 list( APPEND USED_LIBS opengl32.lib )
19286d7c 9 list( APPEND USED_LIBS user32.lib )
10 list( APPEND USED_LIBS gdi32.lib )
11 list( APPEND USED_LIBS ws2_32.lib )
12 list( APPEND USED_LIBS vfw32.lib )
13elseif(APPLE)
14 find_library(FRAMEWORKS_OPENGL NAMES OpenGL)
15 if(USE_GLX)
16 list( APPEND USED_LIBS GL )
19286d7c 17 else()
18 list( APPEND USED_LIBS ${FRAMEWORKS_OPENGL} )
19 endif()
20 list( APPEND USED_LIBS objc )
21 find_library(FRAMEWORKS_APPKIT NAMES Appkit)
22 list( APPEND USED_LIBS ${FRAMEWORKS_APPKIT} )
23 find_library(FRAMEWORKS_IOKIT NAMES IOKit)
24 list( APPEND USED_LIBS ${FRAMEWORKS_IOKIT} )
25 list( APPEND USED_LIBS freetype )
26else()
19286d7c 27 list( APPEND USED_LIBS GL )
28 list( APPEND USED_LIBS freetype )
29endif()
30
31if (NOT WIN32)
32 if(USE_GL2PS)
33 list( APPEND USED_LIBS gl2ps )
34 endif()
35endif()
36
f2e9c853 37OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)