diff options
author | Josh Blum <josh@joshknows.com> | 2013-03-27 13:51:41 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2013-03-29 10:42:30 -0700 |
commit | 31b23a19017b7cba7e7563133e0e09dec30fc89e (patch) | |
tree | 9ccbb86cb81ce22dcc5393b51228ed36e8625759 /host/cmake/Modules/FindORC.cmake | |
parent | d745186d00c7c267771296c8dd780b022e994421 (diff) | |
download | uhd-31b23a19017b7cba7e7563133e0e09dec30fc89e.tar.gz uhd-31b23a19017b7cba7e7563133e0e09dec30fc89e.tar.bz2 uhd-31b23a19017b7cba7e7563133e0e09dec30fc89e.zip |
orc: added std cmake finder script for orc
Diffstat (limited to 'host/cmake/Modules/FindORC.cmake')
-rw-r--r-- | host/cmake/Modules/FindORC.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/host/cmake/Modules/FindORC.cmake b/host/cmake/Modules/FindORC.cmake new file mode 100644 index 000000000..bb212fb1b --- /dev/null +++ b/host/cmake/Modules/FindORC.cmake @@ -0,0 +1,28 @@ +######################################################################## +# Find the library for ORC development files +######################################################################## + +INCLUDE(FindPkgConfig) +PKG_CHECK_MODULES(PC_ORC "orc-0.4 > 0.4.11") + +FIND_PATH( + ORC_INCLUDE_DIRS + NAMES orc/orc.h + HINTS $ENV{ORC_DIR}/include/orc-0.4 + ${PC_ORC_INCLUDEDIR} + PATHS /usr/local/include/orc-0.4 + /usr/include/orc-0.4 +) + +FIND_LIBRARY( + ORC_LIBRARIES + NAMES orc-0.4 + HINTS $ENV{ORC_DIR}/lib + ${PC_ORC_LIBDIR} + PATHS /usr/local/lib + /usr/lib +) + +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(ORC DEFAULT_MSG ORC_LIBRARIES ORC_INCLUDE_DIRS) +MARK_AS_ADVANCED(ORC_LIBRARIES ORC_INCLUDE_DIRS) |