-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34800d7
commit eee64b0
Showing
3 changed files
with
222 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Try to find libcx3d (*shared* or *static* CyberX3D VRML library) | ||
# Once done this will define | ||
# | ||
# LIBCX3D_FOUND - system has libcx3d | ||
# LIBCX3D_INCLUDE_DIRS - the libcx3d include directory | ||
# LIBCX3D_LIBRARIES - Link these to use libcx3d | ||
# | ||
# Adapted from cmake-modules Google Code project | ||
# | ||
# Copyright (c) 2006 Andreas Schneider <mail@cynapses.org> | ||
# | ||
# (Changes for libcx3d) Copyright (c) 2013 CompuPhase | ||
# | ||
# Redistribution and use is allowed according to the terms of the New BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# | ||
|
||
|
||
if (LIBCX3D_LIBRARIES AND LIBCX3D_INCLUDE_DIRS) | ||
# in cache already | ||
set(LIBCX3D_FOUND TRUE) | ||
else (LIBCX3D_LIBRARIES AND LIBCX3D_INCLUDE_DIRS) | ||
find_path(LIBCX3D_INCLUDE_DIR | ||
NAMES | ||
CyberX3D.h | ||
PATHS | ||
/usr/include | ||
/usr/local/include | ||
/opt/local/include | ||
/sw/include | ||
) | ||
|
||
SET(CX3D_LIBNAME cx3d-1.0) | ||
find_library(LIBCX3D_LIBRARY | ||
NAMES | ||
${CX3D_LIBNAME} | ||
PATHS | ||
/usr/lib | ||
/usr/local/lib | ||
/opt/local/lib | ||
/sw/lib | ||
/usr/lib64 | ||
/usr/local/lib64 | ||
/opt/local/lib64 | ||
/sw/lib64 | ||
) | ||
|
||
if(LIBCX3D_INCLUDE_DIR) | ||
set(LIBCX3D_INCLUDE_DIRS | ||
${LIBCX3D_INCLUDE_DIR}/../.. | ||
) | ||
endif(LIBCX3D_INCLUDE_DIR) | ||
set(LIBCX3D_LIBRARIES | ||
${LIBCX3D_LIBRARY} | ||
) | ||
|
||
if (LIBCX3D_INCLUDE_DIRS AND LIBCX3D_LIBRARIES) | ||
set(LIBCX3D_FOUND TRUE) | ||
endif (LIBCX3D_INCLUDE_DIRS AND LIBCX3D_LIBRARIES) | ||
|
||
if (LIBCX3D_FOUND) | ||
if (NOT libcx3d_FIND_QUIETLY) | ||
message(STATUS "Found libcx3d: ${LIBCX3D_LIBRARIES} / ${LIBCX3D_INCLUDE_DIRS}") | ||
endif (NOT libcx3d_FIND_QUIETLY) | ||
else (LIBCX3D_FOUND) | ||
if (libcx3d_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could not find libcx3d") | ||
endif (libcx3d_FIND_REQUIRED) | ||
endif (LIBCX3D_FOUND) | ||
|
||
# show the LIBCX3D_INCLUDE_DIRS and LIBCX3D_LIBRARIES variables only in the advanced view | ||
mark_as_advanced(LIBCX3D_INCLUDE_DIRS LIBCX3D_LIBRARIES) | ||
|
||
endif (LIBCX3D_LIBRARIES AND LIBCX3D_INCLUDE_DIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Try to find libhpdf (*shared* libHaru PDF library) | ||
# Once done this will define | ||
# | ||
# LIBHPDF_FOUND - system has libhpdf | ||
# LIBHPDF_INCLUDE_DIRS - the libhpdf include directory | ||
# LIBHPDF_LIBRARIES - Link these to use libhpdf | ||
# | ||
# Adapted from cmake-modules Google Code project | ||
# | ||
# Copyright (c) 2006 Andreas Schneider <mail@cynapses.org> | ||
# | ||
# (Changes for libhpdf) Copyright (c) 2013 CompuPhase | ||
# | ||
# Redistribution and use is allowed according to the terms of the New BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# | ||
|
||
|
||
if (LIBHPDF_LIBRARIES AND LIBHPDF_INCLUDE_DIRS) | ||
# in cache already | ||
set(LIBHPDF_FOUND TRUE) | ||
else (LIBHPDF_LIBRARIES AND LIBHPDF_INCLUDE_DIRS) | ||
find_path(LIBHPDF_INCLUDE_DIR | ||
NAMES | ||
hpdf.h | ||
PATHS | ||
/usr/include | ||
/usr/local/include | ||
/opt/local/include | ||
/sw/include | ||
) | ||
|
||
SET(HPDF_LIBNAME hpdf) | ||
find_library(LIBHPDF_LIBRARY | ||
NAMES | ||
${HPDF_LIBNAME} | ||
PATHS | ||
/usr/lib | ||
/usr/local/lib | ||
/opt/local/lib | ||
/sw/lib | ||
/usr/lib64 | ||
/usr/local/lib64 | ||
/opt/local/lib64 | ||
/sw/lib64 | ||
) | ||
|
||
if(LIBHPDF_INCLUDE_DIR) | ||
set(LIBHPDF_INCLUDE_DIRS | ||
${LIBHPDF_INCLUDE_DIR} | ||
) | ||
endif(LIBHPDF_INCLUDE_DIR) | ||
set(LIBHPDF_LIBRARIES | ||
${LIBHPDF_LIBRARY} | ||
) | ||
|
||
if (LIBHPDF_INCLUDE_DIRS AND LIBHPDF_LIBRARIES) | ||
set(LIBHPDF_FOUND TRUE) | ||
endif (LIBHPDF_INCLUDE_DIRS AND LIBHPDF_LIBRARIES) | ||
|
||
if (LIBHPDF_FOUND) | ||
if (NOT libhpdf_FIND_QUIETLY) | ||
message(STATUS "Found libhpdf: ${LIBHPDF_LIBRARIES}") | ||
endif (NOT libhpdf_FIND_QUIETLY) | ||
else (LIBHPDF_FOUND) | ||
if (libhpdf_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could not find libhpdf") | ||
endif (libhpdf_FIND_REQUIRED) | ||
endif (LIBHPDF_FOUND) | ||
|
||
# show the LIBHPDF_INCLUDE_DIRS and LIBHPDF_LIBRARIES variables only in the advanced view | ||
mark_as_advanced(LIBHPDF_INCLUDE_DIRS LIBHPDF_LIBRARIES) | ||
|
||
endif (LIBHPDF_LIBRARIES AND LIBHPDF_INCLUDE_DIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Try to find libhpdfs (*static* libHaru PDF library) | ||
# Once done this will define | ||
# | ||
# LIBHPDF_FOUND - system has libhpdfs | ||
# LIBHPDF_INCLUDE_DIRS - the libhpdfs include directory | ||
# LIBHPDF_LIBRARIES - Link these to use libhpdfs | ||
# | ||
# Adapted from cmake-modules Google Code project | ||
# | ||
# Copyright (c) 2006 Andreas Schneider <mail@cynapses.org> | ||
# | ||
# (Changes for libhpdfs) Copyright (c) 2013 CompuPhase | ||
# | ||
# Redistribution and use is allowed according to the terms of the New BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# | ||
|
||
|
||
if (LIBHPDF_LIBRARIES AND LIBHPDF_INCLUDE_DIRS) | ||
# in cache already | ||
set(LIBHPDF_FOUND TRUE) | ||
else (LIBHPDF_LIBRARIES AND LIBHPDF_INCLUDE_DIRS) | ||
find_path(LIBHPDF_INCLUDE_DIR | ||
NAMES | ||
hpdf.h | ||
PATHS | ||
/usr/include | ||
/usr/local/include | ||
/opt/local/include | ||
/sw/include | ||
) | ||
|
||
SET(HPDF_LIBNAME hpdfs) | ||
find_library(LIBHPDF_LIBRARY | ||
NAMES | ||
${HPDF_LIBNAME} | ||
PATHS | ||
/usr/lib | ||
/usr/local/lib | ||
/opt/local/lib | ||
/sw/lib | ||
/usr/lib64 | ||
/usr/local/lib64 | ||
/opt/local/lib64 | ||
/sw/lib64 | ||
) | ||
|
||
if(LIBHPDF_INCLUDE_DIR) | ||
set(LIBHPDF_INCLUDE_DIRS | ||
${LIBHPDF_INCLUDE_DIR} | ||
) | ||
endif(LIBHPDF_INCLUDE_DIR) | ||
set(LIBHPDF_LIBRARIES | ||
${LIBHPDF_LIBRARY} | ||
) | ||
|
||
if (LIBHPDF_INCLUDE_DIRS AND LIBHPDF_LIBRARIES) | ||
set(LIBHPDF_FOUND TRUE) | ||
endif (LIBHPDF_INCLUDE_DIRS AND LIBHPDF_LIBRARIES) | ||
|
||
if (LIBHPDF_FOUND) | ||
if (NOT libhpdfs_FIND_QUIETLY) | ||
message(STATUS "Found libhpdfs: ${LIBHPDF_LIBRARIES}") | ||
endif (NOT libhpdfs_FIND_QUIETLY) | ||
else (LIBHPDF_FOUND) | ||
if (libhpdfs_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could not find libhpdfs") | ||
endif (libhpdfs_FIND_REQUIRED) | ||
endif (LIBHPDF_FOUND) | ||
|
||
# show the LIBHPDF_INCLUDE_DIRS and LIBHPDF_LIBRARIES variables only in the advanced view | ||
mark_as_advanced(LIBHPDF_INCLUDE_DIRS LIBHPDF_LIBRARIES) | ||
|
||
endif (LIBHPDF_LIBRARIES AND LIBHPDF_INCLUDE_DIRS) |