1
0
mirror of synced 2024-11-24 07:40:17 +01:00

build: Bundle SDK with releases

This commit is contained in:
WerWolv 2023-10-22 21:27:13 +02:00
parent 73d7cc7c12
commit e92f937587
2 changed files with 8 additions and 0 deletions

View File

@ -65,3 +65,4 @@ add_subdirectory(tests EXCLUDE_FROM_ALL)
# Configure packaging
createPackage()
generatePDBs()
generateSDKDirectory()

View File

@ -658,5 +658,12 @@ function(generatePDBs)
install(FILES ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb DESTINATION ".")
endforeach ()
endfunction()
function(generateSDKDirectory)
set(SDK_PATH "./sdk")
install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/libimhex/include DESTINATION "${SDK_PATH}")
install(FILES ${CMAKE_SOURCE_DIR}/cmake/modules/ImHexPlugin.cmake DESTINATION "${SDK_PATH}/cmake/modules")
install(TARGETS libimhex DESTINATION "${SDK_PATH}/lib")
endfunction()