diff --git a/packages/TrilinosInstallTests/find_package_Trilinos/CMakeLists.txt b/packages/TrilinosInstallTests/find_package_Trilinos/CMakeLists.txt index d748f0ecb8ff..10cbf77ccb8b 100644 --- a/packages/TrilinosInstallTests/find_package_Trilinos/CMakeLists.txt +++ b/packages/TrilinosInstallTests/find_package_Trilinos/CMakeLists.txt @@ -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.c) +target_link_libraries(hello PUBLIC ${Trilinos_LIBRARIES}) diff --git a/packages/TrilinosInstallTests/find_package_Trilinos/hello.c b/packages/TrilinosInstallTests/find_package_Trilinos/hello.c new file mode 100644 index 000000000000..2b3a7f937f92 --- /dev/null +++ b/packages/TrilinosInstallTests/find_package_Trilinos/hello.c @@ -0,0 +1,5 @@ +#include + +int main(int argc, char** argv) { + printf("Hello, world!"); +}