-# Copyright (C) 2010-2012 CEA/DEN, EDF R&D
+# Copyright (C) 2010-2014 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-SET(VERSION_INFO ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MAINTENANCE})
-SET(SOVERSION_INFO ${VERSION_MAJOR}.${VERSION_MINOR})
+IF(NOT SALOME_PARAVIS_MINIMAL_CORBA)
+ INCLUDE_DIRECTORIES(
+ ${OMNIORB_INCLUDE_DIR}
+ ${KERNEL_INCLUDE_DIRS}
+ ${PROJECT_BINARY_DIR}/idl)
+
+ ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
+ ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
+
+ ADD_LIBRARY(PARAVISEngine PARAVIS_Engine_i.cc)
+
+ TARGET_LINK_LIBRARIES(PARAVISEngine
+ ${KERNEL_SalomeIDLKernel} ${KERNEL_SalomeNS} ${KERNEL_SalomeContainer} ${KERNEL_SALOMELocalTrace}
+ ${OMNIORB_LIBRARIES}
+ SalomeIDLPARAVIS)
+ INSTALL(TARGETS PARAVISEngine) # doesn't need to be exported
+
+ INSTALL(FILES PARAVIS_Engine_i.hh DESTINATION ${SALOME_INSTALL_HEADERS})
+ELSE()
+ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/no_wrap/PARAVIS.py.in ${CMAKE_CURRENT_BINARY_DIR}/PARAVIS.py @ONLY)
+ SET(_bin_SCRIPTS
+ ${CMAKE_CURRENT_BINARY_DIR}/PARAVIS.py
+ no_wrap/PARAVIS_utils.py
+ )
-ADD_DEFINITIONS(-DHAVE_SALOME_CONFIG)
-INCLUDE_DIRECTORIES(${OMNIORB_INCLUDE_DIRS} ${KERNEL_ROOT_DIR}/include/salome ${CMAKE_BINARY_DIR}/idl)
-
-ADD_LIBRARY(PARAVISEngine SHARED PARAVIS_Engine_i.cc)
-
-SET(flags)
-FOREACH(f ${PLATFORM_CPPFLAGS} ${PTHREAD_CFLAGS} ${KERNEL_CXXFLAGS} ${OMNIORB_DEFINITIONS})
- SET(flags "${flags} ${f}")
-ENDFOREACH(f ${var})
-
-SET_TARGET_PROPERTIES(PARAVISEngine PROPERTIES COMPILE_FLAGS "${flags}")
-SET_TARGET_PROPERTIES(PARAVISEngine PROPERTIES VERSION ${VERSION_INFO} SOVERSION ${SOVERSION_INFO})
-
-TARGET_LINK_LIBRARIES(PARAVISEngine ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${KERNEL_LDFLAGS} ${SalomeIDLKernel} ${SalomeNS} ${SalomeContainer} ${SALOMELocalTrace} ${OMNIORB_LIBRARIES} SalomeIDLPARAVIS)
-INSTALL(TARGETS PARAVISEngine DESTINATION lib/salome)
-
-INSTALL(FILES PARAVIS_Engine_i.hh DESTINATION include/salome)
+ # --- rules ---
+ SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_PYTHON})
+ENDIF()
+
\ No newline at end of file