From 7e64157ded8c8f3bdb1dc0add3efe519afc28ba4 Mon Sep 17 00:00:00 2001 From: Michael Ragazzon Date: Sat, 16 Mar 2024 11:36:46 +0100 Subject: [PATCH] Always install all of Include instead of splitting it up with targets, and fix some package paths --- .github/workflows/package.yml | 10 +++++----- CMakeLists.txt | 6 ++++-- Source/Core/CMakeLists.txt | 9 --------- Source/Debugger/CMakeLists.txt | 8 -------- Source/Lottie/CMakeLists.txt | 5 ----- Source/Lua/CMakeLists.txt | 8 -------- Source/SVG/CMakeLists.txt | 5 ----- 7 files changed, 9 insertions(+), 42 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index ef391c89c..981ce3f44 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -9,9 +9,9 @@ jobs: strategy: fail-fast: false matrix: - build_type: [Debug, Release] - library_linkage: [Dynamic, Static] architecture: [win32, win64] + library_linkage: [Dynamic, Static] + build_type: [Debug, Release] env: GENERATOR: Visual Studio 16 2019 @@ -50,7 +50,7 @@ jobs: run: |- cp LICENSE.txt Install/LICENSE.txt $vcpkg_installed_dir="C:/vcpkg/installed/$env:VCPKG_DEFAULT_TRIPLET/" - $destination_dir="./Install/Dependencies/Licenses/" + $destination_dir="./Install/Dependencies/" $copyright_files = Get-ChildItem -Path "$vcpkg_installed_dir/share" -Filter "copyright" -Recurse | Where-Object { $_.Directory.Name -notmatch '^vcpkg-' } mkdir $destination_dir -Force | Out-Null foreach ($file in $copyright_files) { @@ -61,7 +61,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: build-${{ matrix.architecture }}-${{ matrix.build_type }}-${{ matrix.library_linkage }} + name: build-${{ matrix.architecture }}-${{ matrix.library_linkage }}-${{ matrix.build_type }} path: ${{github.workspace}}/Install/ if-no-files-found: error @@ -108,7 +108,7 @@ jobs: -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/Install" -DCMAKE_INSTALL_BINDIR="Samples" - -DCMAKE_INSTALL_DATAROOTDIR="" + -DCMAKE_INSTALL_DATAROOTDIR="." - name: Build run: cmake --build Build --config Release diff --git a/CMakeLists.txt b/CMakeLists.txt index b908c9bb9..2cfd4e381 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,6 +157,10 @@ install(EXPORT RmlUiTargets NAMESPACE RmlUi:: FILE RmlUiTargets.cmake ) +install(DIRECTORY + "${CMAKE_CURRENT_SOURCE_DIR}/Include/RmlUi" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" +) include(CMakePackageConfigHelpers) @@ -165,7 +169,6 @@ configure_file( "${CMAKE_CURRENT_BINARY_DIR}/install/RmlUiConfig.cmake" @ONLY ) - # RMLUI_CMAKE_MINIMUM_VERSION_RAISE_NOTICE: # From CMake 3.11 use compatibility mode `SameMinorVersion`. write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/install/RmlUiConfigVersion.cmake" @@ -178,7 +181,6 @@ install(FILES DESTINATION "${RMLUI_INSTALL_TARGETS_DIR}" ) - install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/CMake/Modules" DESTINATION "${RMLUI_INSTALL_TARGETS_DIR}" ) diff --git a/Source/Core/CMakeLists.txt b/Source/Core/CMakeLists.txt index 9b9aca665..22cf5f210 100644 --- a/Source/Core/CMakeLists.txt +++ b/Source/Core/CMakeLists.txt @@ -445,12 +445,3 @@ install(TARGETS rmlui_core ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install_target_pdb(rmlui_core) -install(DIRECTORY - "${PROJECT_SOURCE_DIR}/Include/RmlUi/Core" - "${PROJECT_SOURCE_DIR}/Include/RmlUi/Config" - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/RmlUi" -) -install(FILES - "${PROJECT_SOURCE_DIR}/Include/RmlUi/Core.h" - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/RmlUi" -) diff --git a/Source/Debugger/CMakeLists.txt b/Source/Debugger/CMakeLists.txt index 06f3275c4..f39e96d32 100644 --- a/Source/Debugger/CMakeLists.txt +++ b/Source/Debugger/CMakeLists.txt @@ -65,11 +65,3 @@ install(TARGETS rmlui_debugger ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install_target_pdb(rmlui_debugger) -install(DIRECTORY - "${PROJECT_SOURCE_DIR}/Include/RmlUi/Debugger" - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/RmlUi" -) -install(FILES - "${PROJECT_SOURCE_DIR}/Include/RmlUi/Debugger.h" - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/RmlUi" -) diff --git a/Source/Lottie/CMakeLists.txt b/Source/Lottie/CMakeLists.txt index 0307e6067..f673644b3 100644 --- a/Source/Lottie/CMakeLists.txt +++ b/Source/Lottie/CMakeLists.txt @@ -8,8 +8,3 @@ target_sources(rmlui_core PRIVATE ) target_compile_definitions(rmlui_core PRIVATE "RMLUI_LOTTIE_PLUGIN") - -install(DIRECTORY - "${PROJECT_SOURCE_DIR}/Include/RmlUi/Lottie" - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/RmlUi" -) diff --git a/Source/Lua/CMakeLists.txt b/Source/Lua/CMakeLists.txt index 39f567978..9e43cfea5 100644 --- a/Source/Lua/CMakeLists.txt +++ b/Source/Lua/CMakeLists.txt @@ -111,11 +111,3 @@ install(TARGETS rmlui_lua ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install_target_pdb(rmlui_lua) -install(DIRECTORY - "${PROJECT_SOURCE_DIR}/Include/RmlUi/Lua" - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/RmlUi" -) -install(FILES - "${PROJECT_SOURCE_DIR}/Include/RmlUi/Lua.h" - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/RmlUi" -) diff --git a/Source/SVG/CMakeLists.txt b/Source/SVG/CMakeLists.txt index f9455afa5..45fed697d 100644 --- a/Source/SVG/CMakeLists.txt +++ b/Source/SVG/CMakeLists.txt @@ -8,8 +8,3 @@ target_sources(rmlui_core PRIVATE ) target_compile_definitions(rmlui_core PRIVATE "RMLUI_SVG_PLUGIN") - -install(DIRECTORY - "${PROJECT_SOURCE_DIR}/Include/RmlUi/SVG" - DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/RmlUi" -)