-
-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update linux build instructions, add 2 required Find*.cmake
- Loading branch information
Showing
4 changed files
with
92 additions
and
7 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
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,36 @@ | ||
#https://raw.githubusercontent.com/harningt/cryptoface/7332799df7d9c78012eaa153f6598dcfa7debbc4/Modules/FindCrypto%2B%2B.cmake | ||
# - Find Crypto++ | ||
|
||
if(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) | ||
set(CRYPTO++_FOUND TRUE) | ||
|
||
else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) | ||
find_path(CRYPTO++_INCLUDE_DIR cryptlib.h | ||
/usr/include/crypto++ | ||
/usr/include/cryptopp | ||
/usr/local/include/crypto++ | ||
/usr/local/include/cryptopp | ||
/opt/local/include/crypto++ | ||
/opt/local/include/cryptopp | ||
$ENV{SystemDrive}/Crypto++/include | ||
) | ||
|
||
find_library(CRYPTO++_LIBRARIES NAMES cryptopp | ||
PATHS | ||
/usr/lib | ||
/usr/local/lib | ||
/opt/local/lib | ||
$ENV{SystemDrive}/Crypto++/lib | ||
) | ||
|
||
if(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) | ||
set(CRYPTO++_FOUND TRUE) | ||
message(STATUS "Found Crypto++: ${CRYPTO++_INCLUDE_DIR}, ${CRYPTO++_LIBRARIES}") | ||
else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) | ||
set(CRYPTO++_FOUND FALSE) | ||
message(FATAL_ERROR "Crypto++ not found.") | ||
endif(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) | ||
|
||
mark_as_advanced(CRYPTO++_INCLUDE_DIR CRYPTO++_LIBRARIES) | ||
|
||
endif(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) |
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,47 @@ | ||
#https://raw.githubusercontent.com/imageworks/OpenShadingLanguage/1bd2d67d88418544c4990d93513813696c9a8c06/src/cmake/modules/FindPugiXML.cmake | ||
# Find the pugixml XML parsing library. | ||
# | ||
# Sets the usual variables expected for find_package scripts: | ||
# | ||
# PUGIXML_INCLUDE_DIR - header location | ||
# PUGIXML_LIBRARIES - library to link against | ||
# PUGIXML_FOUND - true if pugixml was found. | ||
|
||
unset (PUGIXML_LIBRARY CACHE) | ||
unset (PUGIXML_INCLUDE_DIR CACHE) | ||
find_path (PUGIXML_INCLUDE_DIR | ||
NAMES pugixml.hpp | ||
PATHS ${PUGIXML_HOME}/include | ||
/usr/local/include | ||
/usr/local/include/pugixml-1.8) | ||
find_library (PUGIXML_LIBRARY | ||
NAMES pugixml | ||
PATHS ${PUGIXML_HOME}/lib | ||
/usr/local/lib | ||
/usr/local/lib/pugixml-1.8) | ||
|
||
# Second chance -- if not found, look in the OIIO distro | ||
if (NOT PUGIXML_INCLUDE_DIR AND OPENIMAGEIO_INCLUDE_DIR) | ||
find_path (PUGIXML_INCLUDE_DIR | ||
NAMES pugixml.hpp | ||
PATHS ${OPENIMAGEIO_INCLUDE_DIR}/OpenImageIO) | ||
set (PUGIXML_LIBRARY ${OPENIMAGEIO_LIBRARIES}) | ||
endif () | ||
|
||
|
||
# Support the REQUIRED and QUIET arguments, and set PUGIXML_FOUND if found. | ||
include (FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS (PugiXML DEFAULT_MSG PUGIXML_LIBRARY | ||
PUGIXML_INCLUDE_DIR) | ||
|
||
if (PUGIXML_FOUND) | ||
set (PUGIXML_LIBRARIES ${PUGIXML_LIBRARY}) | ||
if (NOT PugiXML_FIND_QUIETLY) | ||
message (STATUS "PugiXML include = ${PUGIXML_INCLUDE_DIR}") | ||
message (STATUS "PugiXML library = ${PUGIXML_LIBRARY}") | ||
endif () | ||
else () | ||
message (FATAL_ERROR "No PugiXML found") | ||
endif() | ||
|
||
mark_as_advanced (PUGIXML_LIBRARY PUGIXML_INCLUDE_DIR) |
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