COMMAND ${OMNIORB_IDL} ${flags} ${input}
MAIN_DEPENDENCY ${input}
)
+ ''')
+ newlines.append('''
install(FILES ${input} DESTINATION idl/salome)
- SET(IDL_HEADER ${CMAKE_CURRENT_BINARY_DIR}/${base}.hh)
- install(FILES ${IDL_HEADER} DESTINATION include/salome)
+ ''')
+ if self.module not in ["pyhello"]:
+ newlines.append('''
+ SET(IDL_HEADER ${CMAKE_CURRENT_BINARY_DIR}/${base}.hh)
+ install(FILES ${IDL_HEADER} DESTINATION include/salome)
+ ''')
+ pass
+ newlines.append('''
INSTALL(CODE "SET(IDL_FILE ${input})")
INSTALL(CODE "SET(DIR lib/python${PYTHON_VERSION}/site-packages/salome)")
INSTALL(CODE "SET(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})")