Salome HOME
Merge Qt5 porting.
[modules/med.git] / src / MEDCalc / gui / dialogs / CMakeLists.txt
1 # Copyright (C) 2012-2015  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
21
22 INCLUDE(UseQtExt)
23
24 SET(MEDCALCGUI_dialogs_FORMS
25   GenericDialog.ui
26   DlgAlias.ui
27   DlgUseInWorkspace.ui
28   DlgChangeUnderlyingMesh.ui
29   DlgInterpolateField.ui
30   DlgImageToMed.ui
31 )
32 QT_WRAP_UIC(MEDCALCGUI_dialogs_FORMS_HEADERS ${MEDCALCGUI_dialogs_FORMS})
33
34 SET(MEDCALCGUI_dialogs_FILES
35   GenericDialog.hxx
36   DlgAlias.hxx
37   DlgUseInWorkspace.hxx
38   DlgChangeUnderlyingMesh.hxx
39   DlgInterpolateField.hxx
40   DlgImageToMed.hxx
41 )
42 QT_WRAP_MOC(MEDCALCGUI_dialogs_HEADERS_MOC ${MEDCALCGUI_dialogs_FILES})
43
44 INCLUDE_DIRECTORIES(
45   ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
46   ${PTHREAD_INCLUDE_DIR}
47   ${CMAKE_CURRENT_BINARY_DIR}
48   ${GUI_INCLUDE_DIRS}
49   ${CMAKE_CURRENT_SOURCE_DIR}/..
50 )
51
52 SET(MEDCALCGUI_dialogs_SOURCES
53   GenericDialog.cxx
54   DlgAlias.cxx
55   DlgUseInWorkspace.cxx
56   DlgChangeUnderlyingMesh.cxx
57   DlgInterpolateField.cxx
58   DlgImageToMed.cxx
59 )
60
61 ADD_LIBRARY(MEDCALCGUI_dialogs SHARED ${MEDCALCGUI_dialogs_SOURCES} ${MEDCALCGUI_dialogs_HEADERS_MOC} ${MEDCALCGUI_dialogs_FORMS_HEADERS})
62 TARGET_LINK_LIBRARIES(MEDCALCGUI_dialogs ${QT_LIBRARIES} ${KERNEL_SalomeIDLKernel}
63     ${GUI_SalomeGuiHelpers} ${OMNIORB_LIBRARIES} ${GUI_qtx} ${GUI_suit} ${PLATFORM_LIBRARIES}
64     ${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_SalomeKernelHelpers} ${GUI_SalomeGuiHelpers})
65 INSTALL(TARGETS MEDCALCGUI_dialogs DESTINATION ${SALOME_INSTALL_LIBS})
66
67 #
68 # ---------------------------------------------------------
69 # Unit test programs
70 # ---------------------------------------------------------
71 #
72 ADD_EXECUTABLE(dlgTester dlgTester.cxx)
73 TARGET_LINK_LIBRARIES(dlgTester MEDCALCGUI_dialogs ${QT_LIBS} ${PLATFORM_LIBS})
74 INSTALL(TARGETS dlgTester DESTINATION ${SALOME_INSTALL_BINS})
75 #ADD_TEST(dlgTester dlgTester)
76
77 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
78 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})