""")
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
# --
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)
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)
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})
''')