Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framework: Enhance find_package(Trilinos) test #12389

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/TrilinosInstallTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ tribits_add_advanced_test(find_package_Trilinos
"-- Configuring done"
"-- Generating done"
ALWAYS_FAIL_ON_NONZERO_RETURN

TEST_1
MESSAGE "Build a dummy project that calls find_package(Trilinos)"
CMND "${CMAKE_COMMAND}"
ARGS --build .

ADDED_TEST_NAME_OUT find_package_Trilinos_name
)
# NOTE: The above test will run find_package(Trilinos) for **all** of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ find_package(Trilinos REQUIRED)
message("Trilinos_FOUND = '${Trilinos_FOUND}'")
message("Trilinos_SELECTED_PACAKGES_LIST = '${Trilinos_SELECTED_PACAKGES_LIST}'")
message("Trilinos_LIBRARIES = '${Trilinos_LIBRARIES}'")

add_executable(hello hello.cpp)
target_link_libraries(hello PUBLIC ${Trilinos_LIBRARIES})
6 changes: 6 additions & 0 deletions packages/TrilinosInstallTests/find_package_Trilinos/hello.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <iostream>

int main() {
std::cout << "Hello World!";
return 0;
}