-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindVOpenSG.cmake
39 lines (33 loc) · 1.11 KB
/
FindVOpenSG.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id$
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
if( NOT VOPENSG_FOUND )
vista_find_package_root( OpenSG include/OpenSG/OSGAction.h )
if( OPENSG_ROOT_DIR )
if( UNIX )
set( OPENSG_LIBRARY_DIRS ${OPENSG_ROOT_DIR}/lib/opt )
set( OPENSG_LIBRARIES
OSGSystem
OSGBase
)
elseif( WIN32 )
set( OPENSG_LIBRARY_DIRS ${OPENSG_ROOT_DIR}/lib )
set( OPENSG_LIBRARIES
optimized OSGSystem
optimized OSGBase
debug OSGSystemD
debug OSGBaseD
)
endif( UNIX )
set( OPENSG_INCLUDE_DIRS ${OPENSG_ROOT_DIR}/include )
set( OPENSG_DEFINITIONS -DOSG_WITH_GLUT -DOSG_WITH_GIF -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_BUILD_DLL -D_OSG_HAVE_CONFIGURED_H_ )
set( OPENSG_DEPENDENCIES package GLUT REQUIRED )
if( UNIX )
string( REGEX MATCH ".*icpc" _IS_ICPC_COMPILER ${CMAKE_CXX_COMPILER} )
if( _IS_ICPC_COMPILER )
set( OPENSG_DEFINITIONS ${OPENSG_DEFINITIONS} -DOSG_ICC_GNU_COMPAT )
endif( _IS_ICPC_COMPILER )
endif( UNIX )
endif( OPENSG_ROOT_DIR )
endif( NOT VOPENSG_FOUND )
find_package_handle_standard_args( VOpenSG "OpenSG could not be found" OPENSG_ROOT_DIR )