]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorvsv <vsv@opencascade.com>
Mon, 17 Jan 2011 12:38:15 +0000 (12:38 +0000)
committervsv <vsv@opencascade.com>
Mon, 17 Jan 2011 12:38:15 +0000 (12:38 +0000)
src/ObjBrowser/CMakeLists.txt [new file with mode: 0644]
src/SUIT/CMakeLists.txt [new file with mode: 0644]
src/SUIT/SUIT.pro

diff --git a/src/ObjBrowser/CMakeLists.txt b/src/ObjBrowser/CMakeLists.txt
new file mode 100644 (file)
index 0000000..21acc62
--- /dev/null
@@ -0,0 +1,34 @@
+PROJECT(ObjBrowser)
+
+INCLUDE(${QT_USE_FILE})
+
+SET(OB_INCLUDE_FILES
+  OB_Browser.h
+  OB_Filter.h
+  OB.h)
+
+SET(OB_MOC_SOURCES OB_Browser.h )
+
+SET(OB_SOURCE_FILES
+  OB_Browser.cxx
+  OB_Filter.cxx)
+
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../Qtx)
+
+ADD_DEFINITIONS( -DOB_EXPORTS )
+
+QT4_WRAP_CPP(MOC_BUILT_SOURCES ${OB_MOC_SOURCES})
+
+ADD_LIBRARY(objbrowser SHARED
+  ${OB_SOURCE_FILES}
+  ${MOC_BUILT_SOURCES} )
+
+ADD_DEPENDENCIES(objbrowser qtx)
+
+TARGET_LINK_LIBRARIES(objbrowser qtx)
+
+INSTALL(TARGETS objbrowser
+  DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${OB_INCLUDE_FILES}
+  DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
diff --git a/src/SUIT/CMakeLists.txt b/src/SUIT/CMakeLists.txt
new file mode 100644 (file)
index 0000000..160f760
--- /dev/null
@@ -0,0 +1,127 @@
+PROJECT(SUIT)
+
+INCLUDE(${QT_USE_FILE})
+
+#
+# Headers
+SET(Suit_INCLUDE_FILES
+  SUIT_Accel.h                                                                                                                               
+  SUIT_ActionOperation.h                                                                                                                     
+  SUIT_Application.h                                                                                                                         
+  SUIT_DataBrowser.h
+  SUIT_DataObject.h
+  SUIT_DataObjectIterator.h
+  SUIT_DataObjectKey.h
+  SUIT_DataOwner.h
+  SUIT_Desktop.h
+  SUIT_ExceptionHandler.h
+  SUIT_FileDlg.h
+  SUIT_FileValidator.h
+  SUIT.h
+  SUIT_LicenseDlg.h
+  SUIT_MessageBox.h
+  SUIT_Operation.h
+  SUIT_OverrideCursor.h
+  SUIT_PopupClient.h
+  SUIT_PreferenceMgr.h
+  SUIT_ResourceMgr.h
+  SUIT_SelectionFilter.h
+  SUIT_SelectionMgr.h
+  SUIT_Selector.h
+  SUIT_Session.h
+  SUIT_SmartPtr.h
+  SUIT_Study.h
+  SUIT_Tools.h
+  SUIT_TreeModel.h
+  SUIT_TreeSync.h
+  SUIT_ViewManager.h
+  SUIT_ViewModel.h
+  SUIT_ViewWindow.h)
+
+#
+# MOC sources
+SET(Suit_MOC_SOURCES 
+  SUIT_Accel.h                                                                                                                               
+  SUIT_ActionOperation.h                                                                                                                     
+  SUIT_Application.h                                                                                                                         
+  SUIT_DataBrowser.h
+  SUIT_DataObject.h
+  SUIT_Desktop.h
+  SUIT_FileDlg.h
+  SUIT_LicenseDlg.h
+  SUIT_Operation.h
+  SUIT_PopupClient.h
+  SUIT_PreferenceMgr.h
+  SUIT_SelectionMgr.h
+  SUIT_Session.h
+  SUIT_Study.h
+  SUIT_TreeModel.h
+  SUIT_ViewManager.h
+  SUIT_ViewModel.h
+  SUIT_ViewWindow.h)
+
+#
+# Source files
+SET(Suit_SOURCE_FILES
+  SUIT_Accel.cxx                                                                                                                             
+  SUIT_ActionOperation.cxx
+  SUIT_Application.cxx
+  SUIT_DataBrowser.cxx
+  SUIT_DataObject.cxx
+  SUIT_DataObjectIterator.cxx
+  SUIT_DataObjectKey.cxx
+  SUIT_DataOwner.cxx
+  SUIT_Desktop.cxx
+  SUIT_ExceptionHandler.cxx
+  SUIT_FileDlg.cxx
+  SUIT_FileValidator.cxx
+  SUIT_LicenseDlg.cxx
+  SUIT_MessageBox.cxx
+  SUIT_Operation.cxx
+  SUIT_OverrideCursor.cxx
+  SUIT_PopupClient.cxx
+  SUIT_PreferenceMgr.cxx
+  SUIT_ResourceMgr.cxx
+  SUIT_SelectionFilter.cxx
+  SUIT_SelectionMgr.cxx
+  SUIT_Selector.cxx
+  SUIT_Session.cxx
+  SUIT_Study.cxx
+  SUIT_Tools.cxx
+  SUIT_TreeModel.cxx
+  SUIT_ViewManager.cxx
+  SUIT_ViewModel.cxx
+  SUIT_ViewWindow.cxx)
+
+#
+# resources files
+SET(resource_FILES  SUIT_msg_en)
+
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx ${CMAKE_CURRENT_SOURCE_DIR}/../ObjBrowser)
+
+ADD_DEFINITIONS( -DSUIT_EXPORTS )
+
+QT4_WRAP_CPP(MOC_BUILT_SOURCES ${Suit_MOC_SOURCES})
+
+
+ADD_LIBRARY(suit SHARED
+  ${Suit_SOURCE_FILES}
+  ${MOC_BUILT_SOURCES} )
+
+TARGET_LINK_LIBRARIES(suit qtx objbrowser )
+
+#
+# Installations
+#
+
+INSTALL(TARGETS suit
+  DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${Suit_INCLUDE_FILES}
+  DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+
+SET(input_name ${CMAKE_CURRENT_SOURCE_DIR}/resources/${resource_FILES}.ts)
+SET(output_name ${CMAKE_CURRENT_BINARY_DIR}/${resource_FILES}.qm)
+
+INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input_name} -qm ${output_name})")
+INSTALL(FILES ${output_name} DESTINATION ${CMAKE_INSTALL_PREFIX}/resources)
\ No newline at end of file
index 17bc963bc07f1e0654a5736cf5bf039c05327970..fa20d13246da756435cf8b3d207df7a8c8337dcf 100644 (file)
 
 TEMPLATE = lib
 TARGET = suit
-DESTDIR = ../../lib
+DESTDIR = $$[GUI_ROOT_DIR]/lib
 MOC_DIR = ../../moc
 OBJECTS_DIR = ../../obj/$$TARGET
 
 INCLUDEPATH += ../../include ../Qtx
-LIBS += -L../../lib -lqtx
+LIBS += -L$$[GUI_ROOT_DIR]/lib -lqtx
 
 CONFIG -= debug release debug_and_release
 CONFIG += qt thread debug dll shared
@@ -92,15 +92,15 @@ SOURCES += SUIT_ViewManager.cxx
 SOURCES += SUIT_ViewModel.cxx
 SOURCES += SUIT_ViewWindow.cxx
 
-TRANSLATIONS = resources/SUIT_images.ts \
-               resources/SUIT_msg_en.ts
+TRANSLATIONS = resources/SUIT_msg_en.ts
 
-ICONS   = resources/*.png
+#ICONS   = resources/*.png
 
 includes.files = $$HEADERS
-includes.path = ../../include
+includes.path = $$[GUI_ROOT_DIR]/include
 
-resources.files = $$ICONS resources/*.qm
-resources.path = ../../resources
+resources.files = resources/*.qm
+resources.path = $$[GUI_ROOT_DIR]/resources
 
-INSTALLS += includes resources
+INSTALLS += includes 
+INSTALLS += resources