2 # Find the native OpenNurbs includes and library
4 # OpenNurbs_INCLUDE_DIR, where to find opennurbs.h, etc.
5 # OPENNURBS_LIBRARIES, the libraries needed to use OpenNurbs.
6 # OPENNURBS_FOUND, If false, do not try to use OpenNurbs.
7 # also defined, but not for general use are
8 # OPENNURBS_LIBRARY, where to find the OpenNurbs library.
10 FIND_PATH(OPENNURBS_INCLUDE_DIR opennurbs/opennurbs.h)
12 SET(OPENNURBS_NAMES_RELEASE ${OPENNURBS_NAMES_RELEASE} opennurbs)
13 FIND_LIBRARY(OPENNURBS_LIBRARY_RELEASE NAMES ${OPENNURBS_NAMES_RELEASE} )
15 SET(OPENNURBS_NAMES_DEBUG ${OPENNURBS_NAMES_DEBUG} opennurbsd)
16 FIND_LIBRARY(OPENNURBS_LIBRARY_DEBUG NAMES ${OPENNURBS_NAMES_DEBUG} )
18 IF(OPENNURBS_LIBRARY_DEBUG)
19 SET(OPENNURBS_LIBRARIES_FOUND TRUE)
20 MARK_AS_ADVANCED(OPENNURBS_LIBRARY_DEBUG)
21 ENDIF(OPENNURBS_LIBRARY_DEBUG)
23 IF(OPENNURBS_LIBRARY_RELEASE)
24 SET(OPENNURBS_LIBRARIES_FOUND TRUE)
25 MARK_AS_ADVANCED(OPENNURBS_LIBRARY_RELEASE)
26 ENDIF(OPENNURBS_LIBRARY_RELEASE)
28 # handle the QUIETLY and REQUIRED arguments and set OPENNURBS_FOUND to TRUE if
29 # all listed variables are TRUE
30 INCLUDE(FindPackageHandleStandardArgs)
31 FIND_PACKAGE_HANDLE_STANDARD_ARGS(OPENNURBS DEFAULT_MSG
32 OPENNURBS_LIBRARIES_FOUND OPENNURBS_INCLUDE_DIR)
35 # SET(OPENNURBS_LIBRARIES ${OPENNURBS_LIBRARY})
36 #ENDIF(OPENNURBS_FOUND)
38 # Deprecated declarations.
39 #SET (NATIVE_OPENNURBS_INCLUDE_PATH ${OPENNURBS_INCLUDE_DIR} )
40 #IF(OPENNURBS_LIBRARY)
41 # GET_FILENAME_COMPONENT (NATIVE_OPENNURBS_LIB_PATH ${OPENNURBS_LIBRARY} PATH)
42 #ENDIF(OPENNURBS_LIBRARY)
44 MARK_AS_ADVANCED(OPENNURBS_LIBRARIES_FOUND OPENNURBS_INCLUDE_DIR )