From 2ec0c0716cfada67d25239d36f3913d66ad4999b Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Mon, 29 Jan 2024 19:16:33 +0000 Subject: [PATCH] Fix installation Signed-off-by: Michael Carroll --- include/gz/gui/CMakeLists.txt | 10 ++++++++++ src/Application_TEST.cc | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/include/gz/gui/CMakeLists.txt b/include/gz/gui/CMakeLists.txt index 34a42c02b..020c520a5 100644 --- a/include/gz/gui/CMakeLists.txt +++ b/include/gz/gui/CMakeLists.txt @@ -70,6 +70,16 @@ if (QT_MAJOR_VERSION EQUAL 6) "${GZ_CMAKE_DIR}/Export.hh.in" "${PROJECT_BINARY_DIR}/include/gz/gui/Export.hh") + install( + FILES "${PROJECT_BINARY_DIR}/include/gz/gui/Export.hh" + DESTINATION ${GZ_INCLUDE_INSTALL_DIR_FULL}/Export.hh + COMPONENT headers) + + install( + FILES "${PROJECT_BINARY_DIR}/include/gz/gui/detail/Export.hh" + DESTINATION ${GZ_INCLUDE_INSTALL_DIR_FULL}/detail/Export.hh + COMPONENT headers) + target_include_directories(${PROJECT_LIBRARY_TARGET_NAME} PUBLIC $ diff --git a/src/Application_TEST.cc b/src/Application_TEST.cc index 5440fb708..1344bf322 100644 --- a/src/Application_TEST.cc +++ b/src/Application_TEST.cc @@ -53,6 +53,12 @@ class ApplicationTest: public ::testing::Test ////////////////////////////////////////////////// TEST_F(ApplicationTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(Constructor)) { + + QDirIterator it(":", QDirIterator::Subdirectories); + while (it.hasNext()) { + std::cout << it.next().toStdString() << "\n"; + } + // One app construct - destruct { Application app(g_argc, g_argv);