-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Find Ogre 2-2 Signed-off-by: ahcorde <[email protected]> Signed-off-by: Michael Carroll <[email protected]>
- Loading branch information
Showing
4 changed files
with
98 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
A quick demonstration of searching for Ogre 2.1 vs 2.2 via ign-cmake. | ||
|
||
To test with both versions installed: | ||
|
||
## Ogre 2.1 | ||
|
||
``` | ||
cd ogre-2.1 | ||
mkdir build | ||
cd build | ||
cmake .. | ||
``` | ||
|
||
### Expected output | ||
|
||
``` | ||
-- Looking for IgnOGRE2 - found | ||
-- OGRE2_FOUND: TRUE | ||
-- OGRE2_LIBRARIES: /usr/lib/x86_64-linux-gnu/OGRE-2.1/libOgreMain.soIgnOGRE2-HlmsPbs::IgnOGRE2-HlmsPbsIgnOGRE2-HlmsUnlit::IgnOGRE2-HlmsUnlitIgnOGRE2-Overlay::IgnOGRE2-Overlay | ||
-- OGRE2_INCLUDE_DIRS: /usr/include/OGRE-2.1/usr/include/OGRE-2.1/RenderSystems/GL3Plus | ||
-- OGRE2_VERSION: 2.1.0 | ||
-- OGRE2_VERSION_MAJOR: 2 | ||
-- OGRE2_VERSION_MINOR: 1 | ||
-- OGRE2_VERSION_PATCH: 0 | ||
-- OGRE2_RESOURCE_PATH: /usr/lib/x86_64-linux-gnu/OGRE-2.1/OGRE | ||
``` | ||
|
||
## Ogre 2.2 | ||
|
||
``` | ||
cd ogre-2.2 | ||
mkdir build | ||
cd build | ||
cmake .. | ||
``` | ||
|
||
### Expected output | ||
|
||
|
||
``` | ||
-- Looking for IgnOGRE2 - found | ||
-- OGRE2_FOUND: TRUE | ||
-- OGRE2_LIBRARIES: /usr/lib/x86_64-linux-gnu/OGRE-2.2/libOgreMain.soIgnOGRE2-HlmsPbs::IgnOGRE2-HlmsPbsIgnOGRE2-HlmsUnlit::IgnOGRE2-HlmsUnlitIgnOGRE2-Overlay::IgnOGRE2-Overlay | ||
-- OGRE2_INCLUDE_DIRS: /usr/include/OGRE-2.2/usr/include/OGRE-2.2/RenderSystems/GL3Plus | ||
-- OGRE2_VERSION: 2.2.6 | ||
-- OGRE2_VERSION_MAJOR: 2 | ||
-- OGRE2_VERSION_MINOR: 2 | ||
-- OGRE2_VERSION_PATCH: 6 | ||
-- OGRE2_RESOURCE_PATH: /usr/lib/x86_64-linux-gnu/OGRE-2.2/OGRE | ||
``` | ||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) | ||
project(ignition-ogre-2.1 VERSION 0.1.0) | ||
|
||
find_package(ignition-cmake2 REQUIRED) | ||
|
||
message(STATUS "Finding OGRE 2.1") | ||
|
||
ign_find_package(IgnOGRE2 VERSION 2.1.0 | ||
COMPONENTS HlmsPbs HlmsUnlit Overlay) | ||
|
||
message(STATUS "OGRE2_FOUND: " ${OGRE2_FOUND}) | ||
message(STATUS "OGRE2_LIBRARIES: " ${OGRE2_LIBRARIES}) | ||
message(STATUS "OGRE2_INCLUDE_DIRS: " ${OGRE2_INCLUDE_DIRS}) | ||
message(STATUS "OGRE2_VERSION: " ${OGRE2_VERSION}) | ||
message(STATUS "OGRE2_VERSION_MAJOR: " ${OGRE2_VERSION_MAJOR}) | ||
message(STATUS "OGRE2_VERSION_MINOR: " ${OGRE2_VERSION_MINOR}) | ||
message(STATUS "OGRE2_VERSION_PATCH: " ${OGRE2_VERSION_PATCH}) | ||
message(STATUS "OGRE2_RESOURCE_PATH: " ${OGRE2_RESOURCE_PATH}) |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) | ||
project(ignition-ogre-2.2 VERSION 0.1.0) | ||
|
||
find_package(ignition-cmake2 REQUIRED) | ||
|
||
message(STATUS "Finding OGRE 2.2") | ||
|
||
ign_find_package(IgnOGRE2 VERSION 2.2.0 | ||
COMPONENTS HlmsPbs HlmsUnlit Overlay) | ||
|
||
message(STATUS "OGRE2_FOUND: " ${OGRE2_FOUND}) | ||
message(STATUS "OGRE2_LIBRARIES: " ${OGRE2_LIBRARIES}) | ||
message(STATUS "OGRE2_INCLUDE_DIRS: " ${OGRE2_INCLUDE_DIRS}) | ||
message(STATUS "OGRE2_VERSION: " ${OGRE2_VERSION}) | ||
message(STATUS "OGRE2_VERSION_MAJOR: " ${OGRE2_VERSION_MAJOR}) | ||
message(STATUS "OGRE2_VERSION_MINOR: " ${OGRE2_VERSION_MINOR}) | ||
message(STATUS "OGRE2_VERSION_PATCH: " ${OGRE2_VERSION_PATCH}) | ||
message(STATUS "OGRE2_RESOURCE_PATH: " ${OGRE2_RESOURCE_PATH}) |