diff options
author | Tom Rondeau | 2011-11-12 18:30:13 -0500 |
---|---|---|
committer | Tom Rondeau | 2011-11-12 18:30:13 -0500 |
commit | 0e7c799e4ef7a392a8ffe47170666908bfcb183f (patch) | |
tree | deb32d3810b4cb636ecfa24ff613a1aad1fd409c /volk/cmake/FindORC.cmake | |
parent | c9c20b9051b997ab53a27869094648f15e0dccae (diff) | |
parent | 9a25332b706b1ffadf8cdf9b405e89c37a1e2278 (diff) | |
download | gnuradio-0e7c799e4ef7a392a8ffe47170666908bfcb183f.tar.gz gnuradio-0e7c799e4ef7a392a8ffe47170666908bfcb183f.tar.bz2 gnuradio-0e7c799e4ef7a392a8ffe47170666908bfcb183f.zip |
Merge branch 'master' of gnuradio.org:gnuradio
Diffstat (limited to 'volk/cmake/FindORC.cmake')
-rw-r--r-- | volk/cmake/FindORC.cmake | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/volk/cmake/FindORC.cmake b/volk/cmake/FindORC.cmake new file mode 100644 index 000000000..8d8c2d13e --- /dev/null +++ b/volk/cmake/FindORC.cmake @@ -0,0 +1,36 @@ +FIND_PACKAGE(PkgConfig) +PKG_CHECK_MODULES(PC_ORC orc-0.4) + + + + +FIND_PROGRAM(ORCC_EXECUTABLE orcc + HINTS ${PC_ORC_TOOLSDIR} + PATHS ${ORC_ROOT}/bin ${CMAKE_INSTALL_PREFIX}/bin) + +FIND_PATH(ORC_INCLUDE_DIR NAMES orc/orc.h + HINTS ${PC_ORC_INCLUDEDIR} + PATHS ${ORC_ROOT}/include/orc-0.4 ${CMAKE_INSTALL_PREFIX}/include/orc-0.4) + + +FIND_PATH(ORC_LIBRARY_DIR NAMES ${CMAKE_SHARED_LIBRARY_PREFIX}orc-0.4${CMAKE_SHARED_LIBRARY_SUFFIX} + HINTS ${PC_ORC_LIBDIR} + PATHS ${ORC_ROOT}/lib${LIB_SUFFIX} ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + +FIND_LIBRARY(ORC_LIB orc-0.4 + HINTS ${PC_ORC_LIBRARY_DIRS} + PATHS ${ORC_ROOT}/lib${LIB_SUFFIX} ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + +LIST(APPEND ORC_LIBRARY + ${ORC_LIB} +) + + +SET(ORC_INCLUDE_DIRS ${ORC_INCLUDE_DIR}) +SET(ORC_LIBRARIES ${ORC_LIBRARY}) +SET(ORC_LIBRARY_DIRS ${ORC_LIBRARY_DIR}) + +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(ORC "orc files" ORC_LIBRARY ORC_INCLUDE_DIR ORCC_EXECUTABLE) + +mark_as_advanced(ICE_INCLUDE_DIR ICE_LIBRARY ORCC_EXECUTABLE) |