From: mpv Date: Thu, 31 May 2012 05:45:40 +0000 (+0000) Subject: TRIPOLI project specific configuration X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=98ab27cbea3ea0ecb6c4f512beab4c8e76a31f96;p=modules%2Fkernel.git TRIPOLI project specific configuration --- diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 20f0e9c7b..1ba912010 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -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}) ''')