From ac5af2a621115dc785f16ffa5f3f4f3ba86e5719 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 8 Dec 2011 11:43:07 +0000 Subject: [PATCH] TRIPOLI and MATERIALS specific rules of compilation --- salome_adm/cmake_files/am2cmake.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index b93e4bfaf..bcf19c294 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -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}) ''') -- 2.39.2