Code

Cmake: Fixed optional dependency linking
[inkscape.git] / src / CMakeLists.txt
index 2d910633788d7445944e0d964b70396d5c02d0c6..094653cb67d93fc3d7929279caa1fbaf4fb7777b 100644 (file)
@@ -236,9 +236,6 @@ inkscape.rc
 inkscape-stock.cpp
 inkscape-stock.h
 inkscape_version.h.mingw
-inkview.cpp
-inkview-manifest.xml
-inkview.rc
 interface.cpp
 interface.h
 isinf.h
@@ -612,6 +609,12 @@ ${ONLY_WIN}
 ADD_EXECUTABLE(inkscape ${INKSCAPE_SRC})\r
 TARGET_LINK_LIBRARIES(inkscape\r
        "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot\r
+)
+
+# make executable for INKVIEW
+ADD_EXECUTABLE(inkview inkview.cpp)
+TARGET_LINK_LIBRARIES(inkview\r
+       "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot\r
 )\r
 #INSTALL(TARGETS INKSCAPE\r
 #  RUNTIME DESTINATION bin\r