mirror of
https://github.com/H-uru/korman.git
synced 2025-07-14 02:27:36 -04:00
Add "Blender for Korman" and build/package process.
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.
This commit is contained in:
@ -1,30 +1,25 @@
|
||||
if(Ogg_INCLUDE_DIR AND Ogg_LIBRARY)
|
||||
set(Ogg_FIND_QUIETLY TRUE)
|
||||
endif()
|
||||
find_package(Ogg CONFIG QUIET)
|
||||
|
||||
if(NOT TARGET Ogg::ogg)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
find_path(Ogg_INCLUDE_DIR ogg/ogg.h
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
find_path(Ogg_INCLUDE_DIR ogg/ogg.h
|
||||
PATHS /usr/local/include /usr/include
|
||||
)
|
||||
|
||||
find_library(Ogg_LIBRARY NAMES ogg
|
||||
PATHS /usr/local/lib /usr/lib
|
||||
)
|
||||
find_library(Ogg_LIBRARY
|
||||
NAMES ogg libogg libogg_static
|
||||
PATHS /usr/local/lib /usr/lib
|
||||
)
|
||||
|
||||
set(Ogg_LIBRARIES ${Ogg_LIBRARY})
|
||||
find_package_handle_standard_args(Ogg REQUIRED_VARS Ogg_INCLUDE_DIR 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")
|
||||
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()
|
||||
|
Reference in New Issue
Block a user