Skip to content

Commit

Permalink
Fix DLLs not installed on Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Web-eWorks committed Jul 2, 2024
1 parent 0c32509 commit c6d5cd2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- '**/CMakeLists.txt'
- '.github/workflows/build-ci.yml'
- '.github/actions/*/action.yml'
- 'cmake/*.cmake'
release:
types: [published]

Expand Down
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,20 @@ endif(MODELCOMPILER)
install(TARGETS ${PROJECT_NAME} editor modelcompiler savegamedump
RUNTIME DESTINATION ${PIONEER_INSTALL_BINDIR}
)

if (MSVC)
file(GLOB win_libs ${CMAKE_SOURCE_DIR}/../pioneer-thirdparty/win32/bin/${MSVC_ARCH}/vs2019/*.dll)
install(FILES ${win_libs} DESTINATION ${PIONEER_INSTALL_BINDIR})
endif (MSVC)

install(DIRECTORY data/
DESTINATION ${PIONEER_INSTALL_DATADIR}/data
REGEX "/models" EXCLUDE
PATTERN ".gitignore" EXCLUDE
PATTERN "listdata.*" EXCLUDE
PATTERN "Makefile.am" EXCLUDE
)

install(DIRECTORY data/models/
DESTINATION ${PIONEER_INSTALL_DATADIR}/data/models
FILES_MATCHING PATTERN "*.sgm" PATTERN "*.dds" PATTERN "*.png"
Expand Down
2 changes: 0 additions & 2 deletions cmake/InstallPioneer.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ endif(APPIMAGE_BUILD)

if (WIN32)
configure_file(pioneer.iss.cmakein pioneer.iss @ONLY)
file(GLOB win_libs ../pioneer-thirdparty/win32/bin/${MSVC_ARCH}/vs2019/*.dll)
install(FILES ${win_libs} DESTINATION ${CMAKE_INSTALL_PREFIX})
if(NOT ISCC)
set(ISCC "C:/Program Files (x86)/Inno Setup 6/ISCC.exe")
endif(NOT ISCC)
Expand Down

0 comments on commit c6d5cd2

Please sign in to comment.