From 55514fe81102aff77643153208125f2ea0c3c2fb Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Mon, 8 May 2017 22:11:37 +0200 Subject: Build an inkview.com as consoler wrapper around inkview.exe to allow for printing to console (just as we do with inkscape.com / inkscape.exe) (bzr r15677) --- CMakeScripts/InstallMSYS2.cmake | 5 +++++ src/CMakeLists.txt | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeScripts/InstallMSYS2.cmake b/CMakeScripts/InstallMSYS2.cmake index c8c580fe4..a96df045b 100644 --- a/CMakeScripts/InstallMSYS2.cmake +++ b/CMakeScripts/InstallMSYS2.cmake @@ -10,6 +10,11 @@ if(WIN32) DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME inkscape.com ) + install(PROGRAMS + ${EXECUTABLE_OUTPUT_PATH}/inkview_com.exe + DESTINATION ${CMAKE_INSTALL_PREFIX} + RENAME inkview.com + ) install(FILES ${LIBRARY_OUTPUT_PATH}/libinkscape_base.dll diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6df71e17e..fe224b9fe 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -491,10 +491,13 @@ if(WIN32) list(APPEND view_SRC inkscape.rc) endif() - # Build the windows MS-DOS console executable. + # Build console applications as wrappers around inkscape/inkview.exe as GUI applications can't print to the console. add_executable(inkscape_com winconsole.cpp) set_target_properties(inkscape_com PROPERTIES LINK_FLAGS "-mconsole") + add_executable(inkview_com winconsole.cpp) + set_target_properties(inkview_com + PROPERTIES LINK_FLAGS "-mconsole") endif() # make executables for inkscape and inkview -- cgit v1.2.3