Salome HOME
Copyright update 2021
[plugins/ghs3dprlplugin.git] / src / tepal2med / CMakeLists.txt
1 # Copyright (C) 2012-2021  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 INCLUDE(UseQtExt)
21
22 # --- options ---
23 # additional include directories
24 INCLUDE_DIRECTORIES(
25   ${QT_INCLUDES}
26   ${MEDFILE_INCLUDE_DIRS}
27   ${HDF5_INCLUDE_DIRS}
28   ${LIBXML2_INCLUDE_DIR}
29   ${CMAKE_CURRENT_BINARY_DIR}
30 )
31
32 # additional preprocessor / compiler flags
33 ADD_DEFINITIONS(
34   ${QT_DEFINITIONS}
35   ${HDF5_DEFINITIONS}
36 )
37
38 # libraries to link to
39 SET(_link_LIBRARIES
40   ${QT_LIBRARIES}
41   ${MEDFILE_C_LIBRARIES}
42   ${LIBXML2_LIBRARIES}
43 )
44
45 # --- headers ---
46
47 # header files / to be processed by moc
48 SET(_moc_HEADERS
49   dlg_ghs3dmain.h
50 )
51
52 SET(_other_HEADERS
53   ghs3dprl_mesh_wrap.h
54   ghs3dprl_msg_parser.h
55 )
56
57 SET(tepal2med_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
58
59 # --- sources ---
60
61 # sources / moc wrappings
62 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
63
64 # sources / static
65 SET(_other_SOURCES
66   ghs3dprl_mesh_wrap.cxx
67   ghs3dprl_msg_parser.cxx
68   dlg_ghs3dmain.cxx
69 )
70
71 # resource files / to be processed by uic
72 SET(_uic_files
73   dlg_ghs3dmain.ui
74 )
75
76 # header files / uic wrappings
77 QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
78
79 # sources / to compile
80 SET(tepal2med_SOURCES tepal2med.cxx ${_other_SOURCES} ${_moc_SOURCES} ${_uic_HEADERS})
81 SET(tetrahpc2med_SOURCES tetrahpc2med.cxx ${_other_SOURCES} ${_moc_SOURCES} ${_uic_HEADERS})
82
83 # --- rules ---
84
85 ADD_EXECUTABLE(tepal2med ${tepal2med_SOURCES})
86 ADD_EXECUTABLE(tetrahpc2med ${tetrahpc2med_SOURCES})
87 TARGET_LINK_LIBRARIES(tepal2med ${_link_LIBRARIES})
88 TARGET_LINK_LIBRARIES(tetrahpc2med ${_link_LIBRARIES})
89 INSTALL(TARGETS tepal2med tetrahpc2med EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})