Skip to content

Commit 855fca5

Browse files
Pierre Anquezpanquez
authored andcommitted
update cmake for new OpenGeode utils
1 parent 44a948f commit 855fca5

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

cmake/MyModuleConfig.cmake.in

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright (c) 2019 Geode-solutions
2+
#
3+
# Permission is hereby granted, free of charge, to any person obtaining a copy
4+
# of this software and associated documentation files (the "Software"), to deal
5+
# in the Software without restriction, including without limitation the rights
6+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
# copies of the Software, and to permit persons to whom the Software is
8+
# furnished to do so, subject to the following conditions:
9+
#
10+
# The above copyright notice and this permission notice shall be included in
11+
# all copies or substantial portions of the Software.
12+
#
13+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
# SOFTWARE.
20+
21+
@PACKAGE_INIT@
22+
23+
include(CMakeFindDependencyMacro)
24+
find_dependency(OpenGeode)
25+
26+
# Load information for each target
27+
include(${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@_mylib_target.cmake)

src/mylib/hello_world.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace mymodule
2929
{
3030
bool hello_world()
3131
{
32-
geode::Logger::info( "Hello Geode World !" );
32+
geode::Logger::info( "Hello Geode World!" );
3333
return true;
3434
}
3535
} // namespace mymodule

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ cmake_minimum_required(VERSION 3.5)
2323
if(NOT TARGET MyModule::mylib)
2424
project(MyModule CXX)
2525
find_package(OpenGeode REQUIRED CONFIG)
26+
find_package(MyModule REQUIRED CONFIG)
2627
enable_testing()
2728
endif()
2829

0 commit comments

Comments
 (0)