Skip to content

Commit

Permalink
internal: fix ga-sdk-cpp port to install header (skyrim-multiplayer#2150
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Pospelove authored Sep 2, 2024
1 parent 3722982 commit abddf57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion overlay_ports/ga-sdk-cpp/CMakelists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ find_package(RapidJSON CONFIG REQUIRED)
set(RAPID_JSON_DIR ${RAPIDJSON_INCLUDE_DIRS})
target_include_directories(ga-sdk-cpp PUBLIC ${RAPID_JSON_DIR})

set_target_properties(ga-sdk-cpp PROPERTIES
PUBLIC_HEADER "source/gameanalytics/GameAnalytics.h"
)

# install
install(TARGETS ga-sdk-cpp
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
PUBLIC_HEADER DESTINATION include
)
4 changes: 4 additions & 0 deletions overlay_ports/ga-sdk-cpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

0 comments on commit abddf57

Please sign in to comment.