mirror of
https://github.com/H-uru/korman.git
synced 2025-07-13 18:17:38 -04:00
This will allow us to automate releases with the Blender 2.79 "experimenntal nightly" codebase. This is great because the newer Blender uses Python 3.7 (instead of 3.5). This pulls from my fork of Blender, which has a number of build improvements added on top.
26 lines
700 B
CMake
26 lines
700 B
CMake
find_package(Ogg CONFIG QUIET)
|
|
|
|
if(NOT TARGET Ogg::ogg)
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_path(Ogg_INCLUDE_DIR ogg/ogg.h
|
|
PATHS /usr/local/include /usr/include
|
|
)
|
|
|
|
find_library(Ogg_LIBRARY
|
|
NAMES ogg libogg libogg_static
|
|
PATHS /usr/local/lib /usr/lib
|
|
)
|
|
|
|
find_package_handle_standard_args(Ogg REQUIRED_VARS Ogg_INCLUDE_DIR Ogg_LIBRARY)
|
|
|
|
if(Ogg_FOUND AND NOT TARGET Ogg::ogg)
|
|
add_library(Ogg::ogg UNKNOWN IMPORTED)
|
|
set_target_properties(
|
|
Ogg::ogg PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${Ogg_INCLUDE_DIR}
|
|
IMPORTED_LOCATION ${Ogg_LIBRARY}
|
|
)
|
|
endif()
|
|
endif()
|