Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to paraview 5.4
[modules/gui.git]
/
src
/
QxScene
/
CMakeLists.txt
diff --git
a/src/QxScene/CMakeLists.txt
b/src/QxScene/CMakeLists.txt
index 4923fa5f6daad1f0ce6082c3c6b73b09001abe26..bd70b29d33cb774c9e1e69d75b962977da82ebba 100755
(executable)
--- a/
src/QxScene/CMakeLists.txt
+++ b/
src/QxScene/CMakeLists.txt
@@
-1,9
+1,9
@@
-# Copyright (C) 2012 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012
-2016
CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License
, or (at your option) any later version
.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-17,55
+17,83
@@
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-INCLUDE(
${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake
)
+INCLUDE(
UseQtExt
)
+# --- options ---
+
+# additional include directories
INCLUDE_DIRECTORIES(
INCLUDE_DIRECTORIES(
- ${CAS_INCLUDE_DIRS}
${QT_INCLUDES}
${QT_INCLUDES}
- ${Boost_INCLUDE_DIRS}
- ${PYTHON_INCLUDE_DIRS}
- ${KERNEL_ROOT_DIR}/include/salome
- ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
- ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
+ ${PROJECT_SOURCE_DIR}/src/Qtx
+ ${PROJECT_SOURCE_DIR}/src/SUIT
)
)
-SET(COMMON_LIBS ${QT_LIBRARIES} suit)
+# additional preprocessor / compiler flags
+ADD_DEFINITIONS(${QT_DEFINITIONS})
-SET(GUI_HEADERS
- QxScene_ViewWindow.h
+# libraries to link to
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx suit)
+
+# --- headers ---
+
+# header files / to be processed by moc
+SET(_moc_HEADERS
QxScene_ViewManager.h
QxScene_ViewModel.h
QxScene_ViewManager.h
QxScene_ViewModel.h
+ QxScene_ViewWindow.h
)
)
-QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
-SET(QxScene_SOURCES
- QxScene_ViewWindow.cxx
- QxScene
_ViewManager.cxx
- QxScene_
ViewModel.cxx
+# header files / no moc processing
+SET(_other_HEADERS
+ QxScene
.h
+ QxScene_
Def.h
)
)
-SET(GUITS_SOURCES
+# header files / to install
+SET(QxScene_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
+
+# --- resources ---
+
+# resource files / to be processed by lrelease
+SET(_ts_RESOURCES
resources/QxSceneViewer_images.ts
resources/QxSceneViewer_msg_en.ts
resources/QxSceneViewer_msg_fr.ts
resources/QxSceneViewer_images.ts
resources/QxSceneViewer_msg_en.ts
resources/QxSceneViewer_msg_fr.ts
+ resources/QxSceneViewer_msg_ja.ts
)
)
-ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${PYTHON_DEFINITIONS})
+# resource files / static
+SET(_other_RESOURCES
+ resources/qx_view_fitall.png
+ resources/qx_view_fitarea.png
+ resources/qx_view_glpan.png
+ resources/qx_view_pan.png
+ resources/qx_view_reset.png
+ resources/qx_view_zoom.png
+)
-ADD_LIBRARY(QxScene ${QxScene_SOURCES} ${GUI_HEADERS_MOC})
-TARGET_LINK_LIBRARIES(QxScene ${COMMON_LIBS})
-INSTALL(TARGETS QxScene DESTINATION ${GUI_salomelib_LIBS})
+# --- sources ---
-SET(COMMON_HEADERS_H
- QxScene_ViewWindow.h
- QxScene_ViewManager.h
- QxScene_ViewModel.h
- QxScene_Def.h
- QxScene.h
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / static
+SET(_other_SOURCES
+ QxScene_ViewManager.cxx
+ QxScene_ViewModel.cxx
+ QxScene_ViewWindow.cxx
)
)
-INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
-QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
+# sources / to compile
+SET(QxScene_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
+
+# --- rules ---
+
+ADD_LIBRARY(QxScene ${QxScene_SOURCES})
+TARGET_LINK_LIBRARIES(QxScene ${_link_LIBRARIES})
+INSTALL(TARGETS QxScene EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
+
+INSTALL(FILES ${QxScene_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
+QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
-FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
-INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
+INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})