You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
575 B

if(Ogg_INCLUDE_DIR AND Ogg_LIBRARY)
set(Ogg_FIND_QUIETLY TRUE)
endif()
find_path(Ogg_INCLUDE_DIR ogg/ogg.h
/usr/local/include
/usr/include
)
find_library(Ogg_LIBRARY NAMES ogg
PATHS /usr/local/lib /usr/lib
)
set(Ogg_LIBRARIES ${Ogg_LIBRARY})
if(Ogg_INCLUDE_DIR AND Ogg_LIBRARY)
set(Ogg_FOUND TRUE)
endif()
if (Ogg_FOUND)
if(NOT Ogg_FIND_QUIETLY)
message(STATUS "Found libogg: ${Ogg_INCLUDE_DIR}")
endif()
else()
if(Ogg_FIND_REQUIRED)
message(FATAL_ERROR "Could not find libogg")
endif()
endif()