use current source dir for console icon copy

This commit is contained in:
Stephen Birarda 2016-01-04 16:36:30 -08:00
parent e075ac2814
commit c4fdd86a56

View file

@ -12,7 +12,7 @@ macro(CONSOLIDATE_INSTALLER_COMPONENTS)
COMMAND "${CMAKE_COMMAND}" -E copy_directory $<TARGET_FILE_DIR:${TARGET_NAME}> ${CMAKE_BINARY_DIR}/package-bundle
)
elseif (TARGET_NAME STREQUAL "package-console")
set (ICON_FILE_PATH "${PROJECT_SOURCE_DIR}/resources/${CONSOLE_ICON}")
set (ICON_FILE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/resources/${CONSOLE_ICON}")
set (ICON_DESTINATION_NAME "console.ico")
# add a command to copy the folder produced by electron-packager to package-bundle