1 # Try to find the osl library
3 # OSL_FOUND - System has osl lib
4 # OSL_INCLUDE_DIR - The osl include directory
5 # OSL_LIBRARY - Library needed to use osl
8 if (OSL_INCLUDE_DIR AND OSL_LIBRARY)
9 # Already in cache, be silent
10 set(OSL_FIND_QUIETLY TRUE)
13 find_path(OSL_INCLUDE_DIR NAMES osl/osl.h)
14 find_library(OSL_LIBRARY NAMES osl)
16 if (OSL_LIBRARY AND OSL_INCLUDE_DIR)
17 message(STATUS "Library osl found =) ${OSL_LIBRARY}")
19 message(STATUS "Library osl not found =(")
23 include(FindPackageHandleStandardArgs)
24 FIND_PACKAGE_HANDLE_STANDARD_ARGS(OSL DEFAULT_MSG OSL_INCLUDE_DIR OSL_LIBRARY)
26 mark_as_advanced(OSL_INCLUDE_DIR OSL_LIBRARY)