[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/office/kmymoney/kmymoney2/widgets
From:       Cristian OneČ› <onet.cristian () gmail ! com>
Date:       2009-11-07 16:37:04
Message-ID: 1257611824.554294.8952.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1046142 by conet:

Create the kmymoneywidgets target only if the designer plugin is enabled from the \
build system (this eliminates the double build problem)

 M  +22 -24    CMakeLists.txt  


--- trunk/playground/office/kmymoney/kmymoney2/widgets/CMakeLists.txt \
#1046141:1046142 @@ -87,40 +87,38 @@
 ########### QtDesigner Widget Library (kmymoneywidgets) #################
 # we never link against this library,
 # but it is needed for uic and QtDesigner
-set(kmymoneywidgets_PART_SRCS
-   ${CMAKE_CURRENT_BINARY_DIR}/kmymoneywidgets.cpp
-)
+IF( USE_QT_DESIGNER )
+  SET(kmymoneywidgets_PART_SRCS
+      ${CMAKE_CURRENT_BINARY_DIR}/kmymoneywidgets.cpp)
 
-kde4_add_widget_files(${kmymoneywidgets_PART_SRCS} kmymoney.widgets)
+  KDE4_ADD_WIDGET_FILES(${kmymoneywidgets_PART_SRCS} kmymoney.widgets)
 
-set(kmymoneywidgets_PART_SRCS
-   ${_critial_common_sources} 
-   ${_uncritial_common_sources}
-   ${kmymoneywidgets_PART_SRCS}
-)
+  SET(kmymoneywidgets_PART_SRCS
+    ${_critial_common_sources}
+    ${_uncritial_common_sources}
+    ${kmymoneywidgets_PART_SRCS})
 
-kde4_add_plugin(kmymoneywidgets ${kmymoneywidgets_PART_SRCS})
+  KDE4_ADD_PLUGIN(kmymoneywidgets ${kmymoneywidgets_PART_SRCS})
 
-# For now, be NOT pedantic about this library.
-# Some undefined references remain.
-SET_TARGET_PROPERTIES(kmymoneywidgets PROPERTIES
-  LINK_FLAGS "-Wl,--undefined")
+  # For now, be NOT pedantic about this library.
+  # Some undefined references remain.
+  SET_TARGET_PROPERTIES(kmymoneywidgets PROPERTIES
+    LINK_FLAGS "-Wl,--undefined")
 
-##### Is the option -DKMM_DESIGNER needed??
-# The option -DKMM_DESIGNER will leave away any code that breaks uic.
-SET_TARGET_PROPERTIES(kmymoneywidgets PROPERTIES
-  COMPILE_FLAGS "-U_CHECK_MEMORY -DKMM_DESIGNER")
-#####
+  ##### Is the option -DKMM_DESIGNER needed??
+  # The option -DKMM_DESIGNER will leave away any code that breaks uic.
+  SET_TARGET_PROPERTIES(kmymoneywidgets PROPERTIES
+    COMPILE_FLAGS "-U_CHECK_MEMORY -DKMM_DESIGNER")
+  #####
 
-target_link_libraries(kmymoneywidgets kmymoney_base kmm_mymoney kmymoney_common \
dialogs widgets converter ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KDECORE_LIBS} \
${KDE4_KDEUI_LIBS}) +  TARGET_LINK_LIBRARIES(kmymoneywidgets kmymoney_base \
kmm_mymoney kmymoney_common dialogs widgets converter ${KDE4_KDE3SUPPORT_LIBS} \
${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS})  
-if( USE_QT_DESIGNER )
-  install(TARGETS kmymoneywidgets DESTINATION ${QT_PLUGINS_DIR}/designer )
+  INSTALL(TARGETS kmymoneywidgets DESTINATION ${QT_PLUGINS_DIR}/designer )
   INSTALL(FILES kmymoneytitlelabel.png DESTINATION \
                ${DATA_INSTALL_DIR}/kmymoney2/pics)
-endif( USE_QT_DESIGNER )
+ENDIF( USE_QT_DESIGNER )
 
 ########### Widget Library (widgets) STATIC #################
- 
+
 SET(libwidgets_a_SOURCES
   ${_critial_common_sources}
   kmymoneybriefschedule.cpp


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic