Merge branch 'master' of github.com:periscop/openscop
[openscop.git] / osl-config.cmake
blob37ac09a0c4a2226e11b567d489ab05e2e334ac65
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)
11 endif()
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}")
18 else()
19         message(STATUS "Library osl not found =(")
20 endif()
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)