aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-28 18:21:38 +0000
committersaturneric <[email protected]>2024-07-28 18:21:38 +0000
commitcf9d6538e6f349b586d10d3de8c810a7d3739111 (patch)
tree05abb185c9beb819f6ca0d776113e18a288ec917
parentfix: must install all headers of test, ui and core and set include path properly (diff)
downloadGpgFrontend-cf9d6538e6f349b586d10d3de8c810a7d3739111.tar.gz
GpgFrontend-cf9d6538e6f349b586d10d3de8c810a7d3739111.zip
fix: correct header search path of application
-rw-r--r--src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bff395ff..19f4e518 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -406,13 +406,16 @@ if (BUILD_APPLICATION)
endif ()
if(STABLE_BUILD_ONLY_APPLICATION)
- target_include_directories(${AppName} PUBLIC "${CMAKE_INSTALL_INCLUDEDIR}/gpgfrontend")
+ message(STATUS "Application Headers Search Path: ${CMAKE_INSTALL_PREFIX}/include/gpgfrontend")
+ target_include_directories(${AppName} PUBLIC "${CMAKE_INSTALL_PREFIX}/include/gpgfrontend")
+ # link qt
if(GPGFRONTEND_QT5_BUILD)
target_link_libraries(${AppName} Qt5::Core Qt5::Widgets)
else()
target_link_libraries(${AppName} Qt6::Core Qt6::Widgets)
endif()
+
endif()
# link options for GpgFrontend