4
4
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:
2021-08-07 17:21:26 -04:00
parent c264cb8095
commit 2bb1c174c7
19 changed files with 1684 additions and 82 deletions

View File

@ -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()