diff options
| author | Campbell Barton <ideasman42@gmail.com> | 2011-06-13 02:33:03 +0000 |
|---|---|---|
| committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-13 02:33:03 +0000 |
| commit | 2c5f1ac093f8d674dae8fc1cae88862d02468356 (patch) | |
| tree | c3859232518b605f4c6fcd4bd09fb5a894076f40 /src/CMakeLists.txt | |
| parent | Replace deprecated GtkTooltips (diff) | |
| download | inkscape-2c5f1ac093f8d674dae8fc1cae88862d02468356.tar.gz inkscape-2c5f1ac093f8d674dae8fc1cae88862d02468356.zip | |
cmake: now builds without having most of the source listed in 1 file.
(bzr r10278)
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 60 |
1 files changed, 17 insertions, 43 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index de6175134..72644b416 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -129,8 +129,6 @@ set(inkscape_SRC inkscape-version.cpp
inkscape.cpp
inkscape.rc
- # inkview.cpp
- # inkview.rc
interface.cpp
knot-holder-entity.cpp
knot.cpp
@@ -141,7 +139,6 @@ set(inkscape_SRC line-snapper.cpp
lpe-tool-context.cpp
main-cmdlineact.cpp
- main.cpp
marker.cpp
measure-context.cpp
media.cpp
@@ -214,8 +211,6 @@ endif() # All folders for internal inkscape
set(internalfolders
- #algorithms
- #api
bind
debug
dialogs
@@ -230,7 +225,6 @@ set(internalfolders # pedro
svg
trace
- #traits
ui
util
widgets
@@ -244,10 +238,10 @@ set(libfolders libcola
libcroco
libgdl
- libnr
- libnrtype
libvpsc
livarot
+ libnr
+ libnrtype
)
set(dirs
@@ -259,18 +253,28 @@ foreach(srclistsrc ${dirs}) add_subdirectory(${srclistsrc})
endforeach()
+get_property(inkscape_global_SRC GLOBAL PROPERTY inkscape_global_SRC)
+
set(inkscape_SRC
+ ${inkscape_global_SRC}
${inkscape_SRC}
- ${GlibOutput}
)
add_library(sp_LIB ${sp_SRC})
+add_library(inkscape_LIB ${inkscape_SRC})
# make executable for INKSCAPE
-add_executable(inkscape ${inkscape_SRC})
+add_executable(inkscape main.cpp)
target_link_libraries(inkscape
# order from automake
+ sp_LIB
+ inkscape_LIB
+ sp_LIB # annoying, we need both!
+
+ nr_LIB
+ nrtype_LIB
+
dom_LIB
croco_LIB
avoid_LIB
@@ -280,26 +284,6 @@ target_link_libraries(inkscape livarot_LIB
2geom_LIB
- # guessing these ones
- ui_LIB
- bind_LIB
- debug_LIB
- dialogs_LIB
- display_LIB
- extension_LIB
- filters_LIB
- helper_LIB
- io_LIB
- nr_LIB
- nrtype_LIB
- sp_LIB
- svg_LIB
- trace_LIB
- util_LIB
- widgets_LIB
- xml_LIB
- live_effects_LIB
-
${INKSCAPE_LIBS}
@@ -353,18 +337,8 @@ target_link_libraries(inkscape )
+# TODO
# make executable for INKVIEW
-#ADD_EXECUTABLE(inkview inkview.cpp)
-#TARGET_LINK_LIBRARIES(inkview
-# 2geom_LIB
-# avoid_LIB
-# cola_LIB
-# croco_LIB
-# gdl_LIB
-# nr_LIB
-# nrtype_LIB
-# vpsc_LIB
-# livarot_LIB
-# sp_LIB
-#)
+#add_executable(inkview inkview.cpp)
+# ...
|
