kxstitch/kxstitch-0.9.0-cmakelist.patch

268 lines
7.6 KiB
Diff
Raw Normal View History

diff -Nru kxstitch-0.9.0-KDE4-orig/CMakeLists.txt kxstitch-0.9.0-KDE4/CMakeLists.txt
--- kxstitch-0.9.0-KDE4-orig/CMakeLists.txt 2012-04-18 22:13:18.000000000 +0200
+++ kxstitch-0.9.0-KDE4/CMakeLists.txt 2012-04-25 08:11:39.298245326 +0200
@@ -1,130 +1,133 @@
-cmake_minimum_required(VERSION 2.6)
-
-project (kxstitch)
-
-find_package (KDE4 REQUIRED)
-find_package (ImageMagick COMPONENTS MagickCore Magick++ REQUIRED)
-find_package (Doxygen)
-find_package (SharedMimeInfo)
-
-if (DOXYGEN_FOUND)
- configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
- add_custom_target (doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
- WORKING_DIRECTORY ${CMAKE_CURENT_BINARY_DIR}
- COMMENT "Generating API documentation with Doxygen" VERBATIM)
-endif (DOXYGEN_FOUND)
-
-include_directories (${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
-include_directories (${ImageMagick_Magick++_INCLUDE_DIR} ${ImageMagick_MagickCore_INCLUDE_DIR})
-
-set (kxstitch_SRCS
- src/BackgroundImage.cpp
- src/BackgroundImages.cpp
- src/Boundary.cpp
- src/Commands.cpp
- src/ConfigurationDialogs.cpp
- src/Document.cpp
- src/DocumentFloss.cpp
- src/DocumentPalette.cpp
- src/Editor.cpp
- src/Element.cpp
- src/Floss.cpp
- src/FlossScheme.cpp
- src/KeycodeLineEdit.cpp
- src/Layer.cpp
- src/Layers.cpp
- src/LibraryFile.cpp
- src/LibraryPattern.cpp
- src/Main.cpp
- src/MainWindow.cpp
- src/Page.cpp
- src/Palette.cpp
- src/PaperSizes.cpp
- src/Pattern.cpp
- src/Preview.cpp
- src/PrinterConfiguration.cpp
- src/Renderer.cpp
- src/Scale.cpp
- src/SchemeManager.cpp
- src/SchemeParser.cpp
- src/Stitch.cpp
- src/StitchData.cpp
- src/XKeyLock.cpp
-
- src/AlphaSelect.cpp
- src/CalibrateFlossDlg.cpp
- src/CharSelectorDlg.cpp
- src/ExtendPatternDlg.cpp
- src/FilePropertiesDlg.cpp
- src/ImportImageDlg.cpp
- src/KeyElementDlg.cpp
- src/LibraryFilePathsDlg.cpp
- src/LibraryListWidget.cpp
- src/LibraryListWidgetItem.cpp
- src/LibraryManagerDlg.cpp
- src/LibraryPatternPropertiesDlg.cpp
- src/LibraryTreeWidget.cpp
- src/LibraryTreeWidgetItem.cpp
- src/NewFlossDlg.cpp
- src/PaletteManagerDlg.cpp
- src/PageLayoutEditor.cpp
- src/PagePreviewListWidgetItem.cpp
- src/PagePropertiesDlg.cpp
- src/PatternElementDlg.cpp
- src/PrintSetupDlg.cpp
- src/SelectArea.cpp
- src/TextElementDlg.cpp
- src/TextToolDlg.cpp
-)
-
-add_subdirectory(icons)
-add_subdirectory(po)
-add_subdirectory(schemes)
-add_subdirectory(doc)
-
-kde4_add_kcfg_files(kxstitch_SRCS configuration.kcfgc)
-
-kde4_add_ui_files(kxstitch_SRCS
- ui/CalibrateFloss.ui
- ui/CharSelector.ui
- ui/ExtendPattern.ui
- ui/FileProperties.ui
- ui/KeyElement.ui
- ui/ImportImage.ui
- ui/LibraryFilePaths.ui
- ui/LibraryManager.ui
- ui/LibraryPatternProperties.ui
- ui/NewFloss.ui
- ui/PageProperties.ui
- ui/PaletteManager.ui
- ui/PatternElement.ui
- ui/PrintSetup.ui
- ui/TextElement.ui
- ui/TextTool.ui
- ui/EditorConfigPage.ui
- ui/PatternConfigPage.ui
- ui/ImportConfigPage.ui
- ui/LibraryConfigPage.ui
- ui/PrinterConfigPage.ui
-)
-
-kde4_install_icons(${ICON_INSTALL_DIR})
-
-kde4_add_executable (kxstitch ${kxstitch_SRCS})
-
-target_link_libraries (kxstitch ${KDE4_KDEUI_LIBS}
- ${KDE4_KIO_LIBS}
- ${ImageMagick_Magick++_LIBRARY} ${ImageMagick_MagickCore_LIBRARY})
-
-set (CMAKE_CXX_FLAGS "-DQT_NO_COMPAT -DKDE_NO_COMPAT")
-
-install (TARGETS kxstitch DESTINATION ${BIN_INSTALL_DIR})
-install (FILES kxstitchui.rc DESTINATION ${DATA_INSTALL_DIR}/kxstitch)
-install (FILES kxstitch.kcfg DESTINATION ${KCFG_INSTALL_DIR})
-install (FILES kxstitch.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
-install (FILES kxstitch.1.gz DESTINATION ${MAN_INSTALL_DIR}/man1)
-
-IF (SHARED_MIME_INFO_FOUND AND IS_DIRECTORY ${XDG_MIME_INSTALL_DIR})
- install (FILES kxstitch.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
- update_xdg_mimetypes (${XDG_MIME_INSTALL_DIR})
-ENDIF(SHARED_MIME_INFO_FOUND AND IS_DIRECTORY ${XDG_MIME_INSTALL_DIR})
+cmake_minimum_required(VERSION 2.6)
+
+project (kxstitch)
+
+find_package (KDE4 REQUIRED)
+find_package (ImageMagick COMPONENTS MagickCore Magick++ REQUIRED)
+find_package (X11)
+find_package (Doxygen)
+find_package (SharedMimeInfo)
+
+if (DOXYGEN_FOUND)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
+ add_custom_target (doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
+ WORKING_DIRECTORY ${CMAKE_CURENT_BINARY_DIR}
+ COMMENT "Generating API documentation with Doxygen" VERBATIM)
+endif (DOXYGEN_FOUND)
+
+include_directories (${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
+include_directories (${ImageMagick_Magick++_INCLUDE_DIR} ${ImageMagick_MagickCore_INCLUDE_DIR})
+include_directories (${X11_INCLUDE_DIR})
+
+set (kxstitch_SRCS
+ src/BackgroundImage.cpp
+ src/BackgroundImages.cpp
+ src/Boundary.cpp
+ src/Commands.cpp
+ src/ConfigurationDialogs.cpp
+ src/Document.cpp
+ src/DocumentFloss.cpp
+ src/DocumentPalette.cpp
+ src/Editor.cpp
+ src/Element.cpp
+ src/Floss.cpp
+ src/FlossScheme.cpp
+ src/KeycodeLineEdit.cpp
+ src/Layer.cpp
+ src/Layers.cpp
+ src/LibraryFile.cpp
+ src/LibraryPattern.cpp
+ src/Main.cpp
+ src/MainWindow.cpp
+ src/Page.cpp
+ src/Palette.cpp
+ src/PaperSizes.cpp
+ src/Pattern.cpp
+ src/Preview.cpp
+ src/PrinterConfiguration.cpp
+ src/Renderer.cpp
+ src/Scale.cpp
+ src/SchemeManager.cpp
+ src/SchemeParser.cpp
+ src/Stitch.cpp
+ src/StitchData.cpp
+ src/XKeyLock.cpp
+
+ src/AlphaSelect.cpp
+ src/CalibrateFlossDlg.cpp
+ src/CharSelectorDlg.cpp
+ src/ExtendPatternDlg.cpp
+ src/FilePropertiesDlg.cpp
+ src/ImportImageDlg.cpp
+ src/KeyElementDlg.cpp
+ src/LibraryFilePathsDlg.cpp
+ src/LibraryListWidget.cpp
+ src/LibraryListWidgetItem.cpp
+ src/LibraryManagerDlg.cpp
+ src/LibraryPatternPropertiesDlg.cpp
+ src/LibraryTreeWidget.cpp
+ src/LibraryTreeWidgetItem.cpp
+ src/NewFlossDlg.cpp
+ src/PaletteManagerDlg.cpp
+ src/PageLayoutEditor.cpp
+ src/PagePreviewListWidgetItem.cpp
+ src/PagePropertiesDlg.cpp
+ src/PatternElementDlg.cpp
+ src/PrintSetupDlg.cpp
+ src/SelectArea.cpp
+ src/TextElementDlg.cpp
+ src/TextToolDlg.cpp
+)
+
+add_subdirectory(icons)
+add_subdirectory(po)
+add_subdirectory(schemes)
+add_subdirectory(doc)
+
+kde4_add_kcfg_files(kxstitch_SRCS configuration.kcfgc)
+
+kde4_add_ui_files(kxstitch_SRCS
+ ui/CalibrateFloss.ui
+ ui/CharSelector.ui
+ ui/ExtendPattern.ui
+ ui/FileProperties.ui
+ ui/KeyElement.ui
+ ui/ImportImage.ui
+ ui/LibraryFilePaths.ui
+ ui/LibraryManager.ui
+ ui/LibraryPatternProperties.ui
+ ui/NewFloss.ui
+ ui/PageProperties.ui
+ ui/PaletteManager.ui
+ ui/PatternElement.ui
+ ui/PrintSetup.ui
+ ui/TextElement.ui
+ ui/TextTool.ui
+ ui/EditorConfigPage.ui
+ ui/PatternConfigPage.ui
+ ui/ImportConfigPage.ui
+ ui/LibraryConfigPage.ui
+ ui/PrinterConfigPage.ui
+)
+
+kde4_install_icons(${ICON_INSTALL_DIR})
+
+kde4_add_executable (kxstitch ${kxstitch_SRCS})
+
+target_link_libraries (kxstitch ${KDE4_KDEUI_LIBS}
+ ${KDE4_KIO_LIBS}
+ ${ImageMagick_Magick++_LIBRARY} ${ImageMagick_MagickCore_LIBRARY}
+ ${X11_LIBRARIES})
+
+set (CMAKE_CXX_FLAGS "-DQT_NO_COMPAT -DKDE_NO_COMPAT")
+
+install (TARGETS kxstitch DESTINATION ${BIN_INSTALL_DIR})
+install (FILES kxstitchui.rc DESTINATION ${DATA_INSTALL_DIR}/kxstitch)
+install (FILES kxstitch.kcfg DESTINATION ${KCFG_INSTALL_DIR})
+install (FILES kxstitch.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
+install (FILES kxstitch.1.gz DESTINATION ${MAN_INSTALL_DIR}/man1)
+
+IF (SHARED_MIME_INFO_FOUND AND IS_DIRECTORY ${XDG_MIME_INSTALL_DIR})
+ install (FILES kxstitch.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
+ update_xdg_mimetypes (${XDG_MIME_INSTALL_DIR})
+ENDIF(SHARED_MIME_INFO_FOUND AND IS_DIRECTORY ${XDG_MIME_INSTALL_DIR})