summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorSebastian Faubel <sebastian@semiodesk.com>2016-07-26 21:31:41 +0000
committerSebastian Faubel <sebastian@semiodesk.com>2016-07-26 21:31:41 +0000
commite025d5e0ef78ecb969027f520140e389980bece5 (patch)
tree56afe5de404c431fff2124f4789fd6e1655c0963 /src/CMakeLists.txt
parentOrder some headers (diff)
downloadinkscape-e025d5e0ef78ecb969027f520140e389980bece5.tar.gz
inkscape-e025d5e0ef78ecb969027f520140e389980bece5.zip
CMake on Windows produces same output as btool.
Added inkscape.com and icon to inkview.exe Added msysenv.sh to support compiling using MSYS. (bzr r15023.1.1)
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d4ba9b1f0..ef855d950 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -418,7 +418,7 @@ set(inkscape_SRC
verbs.h
version.h
)
-
+
# -----------------------------------------------------------------------------
# Generate version file
# -----------------------------------------------------------------------------
@@ -484,35 +484,33 @@ set(inkscape_SRC
# -----------------------------------------------------------------------------
# Setup the executable
# -----------------------------------------------------------------------------
-#add_inkscape_lib(sp_LIB "${sp_SRC}")
-#add_inkscape_lib(inkscape_LIB "${inkscape_SRC}")
+set(main_SRC main.cpp)
+set(view_SRC inkview.cpp)
-if(WIN32)
+if(WIN32)
# Sources for the inkscape executable on Windows.
- set(main_SRC
+ list(APPEND main_SRC
registrytool.h
registrytool.cpp
- main.cpp
winmain.cpp
- #winconsole.cpp
)
# Add the platform specific resource files (enabling the app icon).
if(${HAVE_MINGW64})
list(APPEND main_SRC inkscape-x64.rc)
+ list(APPEND view_SRC inkscape-x64.rc)
else()
list(APPEND main_SRC inkscape.rc)
+ list(APPEND view_SRC inkscape.rc)
endif()
-else()
- set(main_SRC main.cpp)
+
+ # Build the windows MS-DOS console executable.
+ add_executable(inkscape_com winconsole.cpp)
endif()
-# Build everything except main and inkview.c in a shared library.
-add_library(inkscape_base SHARED ${inkscape_SRC} ${sp_SRC})
-
# make executables for inkscape and inkview
add_executable(inkscape ${main_SRC})
-add_executable(inkview inkview.cpp)
+add_executable(inkview ${view_SRC})
add_dependencies(inkscape inkscape_version)
@@ -545,6 +543,9 @@ if (NOT "${WITH_EXT_GDL}")
list (INSERT INKSCAPE_TARGET_LIBS 0 "gdl_LIB")
endif()
+# Build everything except main and inkview.c in a shared library.
+add_library(inkscape_base SHARED ${inkscape_SRC} ${sp_SRC})
+
# Link the inkscape_base library against all external dependencies
target_link_libraries(inkscape_base ${INKSCAPE_TARGET_LIBS})