]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
TRIPOLI project specific configuration
authormpv <mpv@opencascade.com>
Thu, 31 May 2012 05:45:40 +0000 (05:45 +0000)
committermpv <mpv@opencascade.com>
Thu, 31 May 2012 05:45:40 +0000 (05:45 +0000)
salome_adm/cmake_files/am2cmake.py

index 20f0e9c7b354101672f49d02df46e9f1417f7640..1ba91201098e775db83df8a50bb77a9ef329505e 100644 (file)
@@ -663,6 +663,28 @@ class CMakeFile(object):
                             """)
                             pass
                         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
+                       if self.module == "montecarlo":
+                            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
             # --
@@ -794,6 +816,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.5.0)
@@ -846,6 +874,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)
@@ -2384,7 +2417,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", "tripoli", "materials"]:
             newlines.append(r'''
             SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
             ''')