]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
TRIPOLI and MATERIALS specific rules of compilation TRIPOLI_3_2_BR TRIPOLI_320 TRIPOLI_321
authormpv <mpv@opencascade.com>
Thu, 8 Dec 2011 11:43:07 +0000 (11:43 +0000)
committermpv <mpv@opencascade.com>
Thu, 8 Dec 2011 11:43:07 +0000 (11:43 +0000)
salome_adm/cmake_files/am2cmake.py

index b93e4bfaf2dabc574602fa1829a4ed4d29a62e94..bcf19c29426443eb99bebc0db2e5d058d3c245c9 100644 (file)
@@ -637,6 +637,16 @@ class CMakeFile(object):
                             INCLUDE(${MED_ROOT_DIR}/adm_local/cmake_files/FindMED.cmake)
                             """)
                             pass
+                       if self.module == "tripoli":
+                            newlines.append("""
+                            SET(GEOM_ROOT_DIR $ENV{GEOM_ROOT_DIR})
+                            SET(MATERIALS_ROOT_DIR $ENV{MATERIALS_ROOT_DIR})
+                            INCLUDE(${GEOM_ROOT_DIR}/adm_local/cmake_files/FindGEOM.cmake)
+                            INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindPROE.cmake)
+                            INCLUDE(${MATERIALS_ROOT_DIR}/adm_local/cmake_files/FindMATERIALS.cmake)
+                            INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindLibJpeg.cmake)
+                            """)
+                            pass
                         pass
                     pass
                 pass
@@ -769,6 +779,12 @@ class CMakeFile(object):
                 SET(WITH_QT4 ON)
                 """)
                 pass
+            elif self.module == "tripoli":
+                newlines.append("""
+                SET(WITH_MCNP ON)
+                SET(WITH_PROE ON)
+                """)
+                pass
             # --
             newlines.append("""
             set(VERSION 6.4.0)
@@ -819,6 +835,11 @@ class CMakeFile(object):
                 ENDIF(KERNEL_ROOT_DIR)
                 ''')
                 pass
+           if self.module == "tripoli":
+                newlines.append(r'''
+                SET(var ${var} -DWITH_MCNP)
+                ''')
+                pass
             if self.module in ["smesh", "netgenplugin", "blsurfplugin", "ghs3dplugin", "hexoticplugin"]:
                 newlines.append(r'''
                 SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DWITH_SMESH_CANCEL_COMPUTE)
@@ -2305,7 +2326,7 @@ class CMakeFile(object):
         IF(ext STREQUAL .qm)
         STRING(REGEX REPLACE .qm .ts input ${f})
         ''')
-        if self.module in ["kernel", "gui", "yacs"]:
+        if self.module in ["kernel", "gui", "yacs", "materials", "tripoli"]:
             newlines.append(r'''
             SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
             ''')