forked from gazebosim/gz-cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests for CONFIG argument (gazebosim#230)
Signed-off-by: Harsh Mahesheka <harsh.mahesheka.eee20@iitbhu.ac.in> Co-authored-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
- Loading branch information
1 parent
bc1980e
commit 047cb58
Showing
6 changed files
with
18 additions
and
0 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,12 @@ | ||
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) | ||
project(ignition-find_config VERSION 0.1.0) | ||
find_package(ignition-cmake2 REQUIRED) | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/") | ||
set(ignition-find_config_DIR "${CMAKE_SOURCE_DIR}/") | ||
#ign_find_package(ignition-find_config) will search for Findignition-find_config.cmake before ignition-find_configConfig.cmake | ||
ign_find_package(ignition-find_config) | ||
#After CONFIG arguemnt ign_find_package will skip MODULE mode and search for ignition-find_configConfig.cmake directly | ||
ign_find_package(ignition-find_config CONFIG) | ||
ign_configure_project() | ||
ign_configure_build(QUIT_IF_BUILD_ERRORS) | ||
ign_create_packages() |
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 @@ | ||
message(STATUS "The package was found using MODULE mode") |
Empty file.
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 @@ | ||
message(STATUS "The package was found using CONFIG mode") |
Empty file.