-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test #570: Initial test case, but not working yet
- Loading branch information
1 parent
782fe79
commit cf65462
Showing
3 changed files
with
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
cmake_minimum_required(VERSION 3.24) | ||
project(MyApp CXX) | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/modules) | ||
|
||
find_program(CCACHE ccache) | ||
find_package(OpenSSL) | ||
find_package(ZLIB) | ||
find_package(prometheus-cpp) | ||
|
||
include(CustomModule) | ||
hello_world() | ||
|
||
add_executable(app main.cpp) | ||
target_link_libraries(app hello::hello bye::bye) |
6 changes: 6 additions & 0 deletions
6
tests/resources/preserve_module_path/modules/CustomModule.cmake
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,6 @@ | ||
|
||
message(STATUS "Loaded custom module") | ||
|
||
macro(hello_world) | ||
message(WARNING "We should be seeing this warning, if we do the test works") | ||
endmacro() |
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