summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-05-08 20:11:37 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-05-08 20:11:37 +0000
commit55514fe81102aff77643153208125f2ea0c3c2fb (patch)
tree3adb4b0e5073bdb833d3c303b04eaa4dd0c2dad7 /src
parentMove gettext initialization to separate function and re-use it in inkview (lo... (diff)
downloadinkscape-55514fe81102aff77643153208125f2ea0c3c2fb.tar.gz
inkscape-55514fe81102aff77643153208125f2ea0c3c2fb.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
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