Skip to content

Commit

Permalink
fix: export headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ABeltramo committed Mar 25, 2024
1 parent 85808c9 commit 9936e49
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>")
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
Expand All @@ -169,3 +161,11 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/inputtino")
endif ()
endif ()

target_include_directories(libinputtino PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>")
set_target_properties(libinputtino PROPERTIES
VERSION ${PROJECT_VERSION}
PUBLIC_HEADER "${PUBLIC_HEADERS}")
set_target_properties(libinputtino PROPERTIES OUTPUT_NAME "libinputtino")

0 comments on commit 9936e49

Please sign in to comment.