-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
641 additions
and
859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,33 @@ | ||
cmake_minimum_required(VERSION 3.10.2) | ||
project(cmake_wrapper) | ||
cmake_minimum_required(VERSION 3.15) | ||
project(OGRE) | ||
|
||
include(conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
# Do not allow system Qt to be used by accident | ||
set(CMAKE_DISABLE_FIND_PACKAGE_QT TRUE) | ||
set(CMAKE_DISABLE_FIND_PACKAGE_Qt5 TRUE) | ||
set(CMAKE_DISABLE_FIND_PACKAGE_Qt6 TRUE) | ||
|
||
add_subdirectory(source_subfolder) | ||
find_package(pugixml REQUIRED CONFIG) | ||
find_package(FreeImage QUIET CONFIG) | ||
find_package(OPENEXR QUIET CONFIG) | ||
find_package(FREETYPE QUIET CONFIG) | ||
find_package(assimp QUIET CONFIG) | ||
|
||
add_library(pugixml ALIAS pugixml::pugixml) | ||
|
||
add_subdirectory(src) | ||
|
||
if(TARGET Codec_FreeImage) | ||
target_link_libraries(Codec_FreeImage PUBLIC freeimage::freeimage) | ||
endif() | ||
if(TARGET Codec_EXR) | ||
target_link_libraries(Codec_EXR openexr::openexr) | ||
endif() | ||
if(TARGET OgreOverlay) | ||
target_link_libraries(OgreOverlay PUBLIC Freetype::Freetype) | ||
endif() | ||
if(TARGET Plugin_DotScene) | ||
target_link_libraries(Plugin_DotScene PUBLIC pugixml::pugixml) | ||
endif() | ||
if(TARGET OgreXMLConverter) | ||
target_link_libraries(OgreXMLConverter pugixml::pugixml) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
sources: | ||
"1.10.2": | ||
url: "https://github.com/OGRECave/ogre/archive/refs/tags/v1.10.2.tar.gz" | ||
sha256: "db022c682376ace2abc45b42802048ad3a8458f5052cbc180b5fb470e4f06a53" | ||
patches: | ||
"1.10.2": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0001-ogre-1.10.2-cmake-fixes.patch" | ||
"1.12.13": | ||
url: "https://github.com/OGRECave/ogre/archive/refs/tags/v1.12.13.tar.gz" | ||
sha256: "b01ec30e7866b3140fc487eb828d92968d6aadc86254ad761a6bcac0f8b8a27f" |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.