Skip to content

Commit

Permalink
+ pull request 61
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 14, 2016
1 parent 711f34f commit 6ee243c
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions cMake/FindCoin3D.cmake
Expand Up @@ -6,6 +6,7 @@
# COIN3D_LIBRARIES - Link this to use Coin3D
#

SET( COIN3D_FOUND "NO" )

IF (WIN32)
IF (CYGWIN)
Expand Down Expand Up @@ -68,26 +69,30 @@ ELSE (WIN32)
/usr/local/lib
)
SET(COIN3D_LIBRARIES "-framework Coin3d" CACHE STRING "Coin3D library for OSX")
ELSE(APPLE)

FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h
/usr/include/Coin3
/usr/include
/usr/include/coin
/usr/local/include
)

FIND_LIBRARY(COIN3D_LIBRARIES Coin
/usr/lib
/usr/local/lib
PATH_SUFFIXES Coin2 Coin3
)
ELSE(APPLE)
# Try to use pkg-config first...
find_package(PkgConfig)
pkg_check_modules(COIN3D Coin)
# ... then fall back to manual lookup
IF(NOT COIN3D_FOUND)
FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h
/usr/include/Coin3
/usr/include
/usr/include/coin
/usr/local/include
)

FIND_LIBRARY(COIN3D_LIBRARIES Coin
/usr/lib
/usr/local/lib
PATH_SUFFIXES Coin2 Coin3
)
ENDIF(NOT COIN3D_FOUND)
ENDIF(APPLE)

ENDIF (WIN32)


SET( COIN3D_FOUND "NO" )
IF(COIN3D_LIBRARIES)
SET( COIN3D_FOUND "YES" )
ENDIF(COIN3D_LIBRARIES)
Expand Down

0 comments on commit 6ee243c

Please sign in to comment.