Skip to content

Commit

Permalink
add PUBLIC include directories to export headers for uhdr and uhdr-st…
Browse files Browse the repository at this point in the history
…atic targets

fixes #351
  • Loading branch information
anshjain04 authored and DichenZhang1 committed Jan 24, 2025
1 parent e1fc769 commit bf2aa43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ endif()
target_link_libraries(${UHDR_TARGET_NAME} PRIVATE ${PRIVATE_LINK_LIBS})
set_target_properties(${UHDR_TARGET_NAME}
PROPERTIES PUBLIC_HEADER ultrahdr_api.h)
target_include_directories(${UHDR_TARGET_NAME} PUBLIC ${EXPORT_INCLUDE_DIR})
if(BUILD_SHARED_LIBS)
# If target is STATIC no need to set VERSION and SOVERSION
set_target_properties(${UHDR_TARGET_NAME}
Expand All @@ -795,6 +796,7 @@ if(BUILD_SHARED_LIBS)
target_link_libraries(${UHDR_TARGET_NAME_STATIC} PRIVATE ${log-lib})
endif()
target_link_libraries(${UHDR_TARGET_NAME_STATIC} PRIVATE ${PRIVATE_LINK_LIBS})
target_include_directories(${UHDR_TARGET_NAME_STATIC} PUBLIC ${EXPORT_INCLUDE_DIR})
combine_static_libs(${UHDR_CORE_LIB_NAME} ${UHDR_TARGET_NAME_STATIC})
if(NOT MSVC)
set_target_properties(${UHDR_TARGET_NAME_STATIC}
Expand Down

0 comments on commit bf2aa43

Please sign in to comment.