Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[fc7596]: config / cmake / Modules / NewCMake / FindLibVRML97.cmake Maximize Restore History

Download this file

FindLibVRML97.cmake    32 lines (22 with data), 903 Bytes

 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
# Locate VRML include paths and libraries
# This module defines
# LIBVRML_INCLUDE_DIR, where to find the header files etc.
# LIBVRML_LIBRARY, the libraries to link against to use the vrml classes.
# LIBVRML_FOUND, If false, do not try to use vrml.
# try to find a path to the include directory
# assume that vrml directory has been set
FIND_PATH( LIBVRML_INCLUDE_DIR VrmlNode.h
${LIBVRML_DIR}/source ${LIBVRML_DIR}/include
)
# try to find a path to the library
# assume that vrml directory has been set
FIND_LIBRARY( LIBVRML_LIBRARY NAMES libvrml97
PATHS ${LIBVRML_DIR}/lib ${LIBVRML_DIR}/lib/release
)
# only add the libvrml library if both the includes and the lib file are found
IF ( LIBVRML_INCLUDE_DIR )
IF ( LIBVRML_LIBRARY )
SET( LIBVRML_FOUND "YES" )
SET( LIBVRML_LIBRARIES ${LIBVRML_LIBRARY} )
ENDIF ( LIBVRML_LIBRARY )
ENDIF ( LIBVRML_INCLUDE_DIR )