-
Notifications
You must be signed in to change notification settings - Fork 0
/
WinPack.CMakeLists.txt
27 lines (23 loc) · 1016 Bytes
/
WinPack.CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
set(CPACK_GENERATOR "NSIS")
get_filename_component(_qt5_bin "${_qt5_install_prefix}/../../bin" ABSOLUTE)
find_program(WINDEPLOYQT_EXECUTABLE NAMES windeployqt HINTS "${_qt5_bin}" REQUIRED)
function(windeploy target)
add_custom_command(TARGET ${target}
POST_BUILD
COMMAND "${WINDEPLOYQT_EXECUTABLE}" --dir windeploy --compiler-runtime ${CMAKE_CFG_INTDIR}/${target}.exe
)
endfunction()
windeploy(qplot)
set(CPACK_GENERATOR "NSIS")
install(TARGETS qplot)
install(DIRECTORY ${CMAKE_BINARY_DIR}/windeploy/ DESTINATION bin)
set(PYPATH "${PYPKG}")
include(python/qplot/Install.CMakeLists.txt)
set(OCTPATH "${OCTPKG}")
include(octave/Install.CMakeLists.txt)
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/GPL-3.0.txt")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "QPlot")
#set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/src/App/eln.ico")
#set(CPACK_NSIS_INSTALLED_ICON_NAME "${CMAKE_SOURCE_DIR}/src/App/eln.ico")
#target_sources(qplot PRIVATE "src/App/winicon.rc")
#set(CPACK_NSIS_MUI_FINISHPAGE_RUN "qplot.exe")