0025114: CMake-based build tools for OCCT 7.0
[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 )
9 list( APPEND USED_LIBS glu32.lib )
10 list( APPEND USED_LIBS user32.lib )
11 list( APPEND USED_LIBS gdi32.lib )
12 list( APPEND USED_LIBS ws2_32.lib )
13 list( APPEND USED_LIBS vfw32.lib )
14elseif(APPLE)
15 find_library(FRAMEWORKS_OPENGL NAMES OpenGL)
16 if(USE_GLX)
17 list( APPEND USED_LIBS GL )
18 list( APPEND USED_LIBS GLU )
19 else()
20 list( APPEND USED_LIBS ${FRAMEWORKS_OPENGL} )
21 endif()
22 list( APPEND USED_LIBS objc )
23 find_library(FRAMEWORKS_APPKIT NAMES Appkit)
24 list( APPEND USED_LIBS ${FRAMEWORKS_APPKIT} )
25 find_library(FRAMEWORKS_IOKIT NAMES IOKit)
26 list( APPEND USED_LIBS ${FRAMEWORKS_IOKIT} )
27 list( APPEND USED_LIBS freetype )
28else()
29 list( APPEND USED_LIBS GLU )
30 list( APPEND USED_LIBS GL )
31 list( APPEND USED_LIBS freetype )
32endif()
33
34if (NOT WIN32)
35 if(USE_GL2PS)
36 list( APPEND USED_LIBS gl2ps )
37 endif()
38endif()
39
40include(${OCCT_SOURCE_DIR}/adm/cmake/BuildToolkit.cmake)