<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello everyone,</div>
<div> </div>
<div>I'm new to cmake so this will be a, more or less, stupid question.</div>
<div>I'm creating an multiplatform application that is dependent on curl, Qt, and ffmpeg.<br/>
I'd like to link them statically.</div>
<div> </div>
<div>On Windows is the need to include the *.dll files. I tried to use fixup_bundle() for this purpose at install time.<br/>
This works like a charm. So no problem theire.</div>
<div> </div>
<div>The problem starts when I'd like to pack the application. For this I'm using WIX and 7ZIP.</div>
<div>In neither of the created installer are the *.dll included.</div>
<div> </div>
<div>I'm not sure where the problem is.</div>
<div>This is my code:</div>
<div> </div>
<div>set(RELATIV_INSTALL_DIRECTORY "bin")<br/>
install(TARGETS ${CMAKE_PROJECT_NAME} <br/>
DESTINATION ${RELATIV_INSTALL_DIRECTORY}<br/>
COMPONENT app)</div>
<div> </div>
<div># DIRS contains all directories the *dll files are located<br/>
set(executable_path "\${CMAKE_INSTALL_PREFIX}/${RELATIV_INSTALL_DIRECTORY}/${CMAKE_PROJECT_NAME}.exe")</div>
<div> </div>
<div>install(CODE "<br/>
include (BundleUtilities)<br/>
fixup_bundle(\"${executable_path}\" \"\" \"${DIRS}\")<br/>
"<br/>
COMPONENT app)</div>
<div> </div>
<div>
<div>set(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_BINARY_DIR}/package")</div>
<div>set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")<br/>
set(CPACK_PACKAGE_VENDOR "${COMPANY_NAME}")<br/>
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Installer for ${CMAKE_PROJECT_NAME}.")<br/>
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")<br/>
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}")<br/>
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}")<br/>
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")<br/>
set(CPACK_PACKAGE_INSTALL_DIRECTORY "company/${CMAKE_PROJECT_NAME}")</div>
<div>set(CPACK_COMPONENTS_ALL app)</div>
<div>set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/license.txt")</div>
<div><br/>
if(WIN32)<br/>
set(CPACK_WIX_UI_DIALOG "${CMAKE_CURRENT_SOURCE_DIR}/res/windows/welcome.bmp")<br/>
# set(CPACK_WIX_PRODUCT_ICON "${CMAKE_CURRENT_SOURCE_DIR}/res/windows/Logo.ico")<br/>
set(CPACK_WIX_UI_BANNER "${CMAKE_CURRENT_SOURCE_DIR}/res/windows/header.bmp")<br/>
set(CPACK_GENERATOR WIX;7Z)<br/>
endif()</div>
<div>include(CPack)<br/>
<br/>
I'm not sure why it won't show in the geerated installers.</div>
<div> </div>
<div>Best regards,<br/>
Seabstian</div>
</div></div></body></html>