From 9936e49383bacddc14b6b74e066c3517abb7aa3a Mon Sep 17 00:00:00 2001 From: ABeltramo Date: Mon, 25 Mar 2024 20:23:18 +0000 Subject: [PATCH] fix: export headers --- CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f439d17..474849f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,14 +145,6 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) set_if_undefined(CMAKE_CXX_VISIBILITY_PRESET hidden) set_if_undefined(CMAKE_VISIBILITY_INLINES_HIDDEN ON) - target_include_directories(libinputtino PUBLIC - "$" - "$") - set_target_properties(libinputtino PROPERTIES - VERSION ${PROJECT_VERSION} - PUBLIC_HEADER "${PUBLIC_HEADERS}") - set_target_properties(libinputtino PROPERTIES OUTPUT_NAME "libinputtino") - if(LIBINPUTTINO_INSTALL AND NOT CMAKE_SKIP_INSTALL_RULES) install(TARGETS libinputtino EXPORT libinputtino_export @@ -169,3 +161,11 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/inputtino") endif () endif () + +target_include_directories(libinputtino PUBLIC + "$" + "$") +set_target_properties(libinputtino PROPERTIES + VERSION ${PROJECT_VERSION} + PUBLIC_HEADER "${PUBLIC_HEADERS}") +set_target_properties(libinputtino PROPERTIES OUTPUT_NAME "libinputtino")