CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
PROJECT(SalomePARAVIS C CXX)
-IF(WINDOWS)
+IF(WIN32)
STRING( REPLACE "INCREMENTAL:YES" "INCREMENTAL:NO" replacementFlags ${CMAKE_SHARED_LINKER_FLAGS_DEBUG} )
SET( CMAKE_SHARED_LINKER_FLAGS_DEBUG "${replacementFlags}" )
-ENDIF(WINDOWS)
+ENDIF(WIN32)
# Ensure a proper linker behavior:
CMAKE_POLICY(SET CMP0003 NEW)
SET(OMNIORB_IDLPYFLAGS "${OMNIORB_IDLPYFLAGS};-DPARAVIS_WITH_FULL_CORBA")
ADD_DEFINITIONS(-DPARAVIS_WITH_FULL_CORBA)
ENDIF()
-
+ ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
SET(SalomeIDLPARAVIS_IDLSOURCES
PARAVIS_Gen.idl
PARAVIS_Gen_Types.idl
LIST(APPEND WRAP_IDL PARAVIS_Gen_${VAL}.idl)
#SET(WRAP_SK_FILES ${WRAP_SK_FILES} PARAVIS_Gen_${VAL}SK.cc)
SET(vtkWrapIDL_EXEFILE ${PROJECT_BINARY_DIR}/src/VTKWrapping/vtkWrapIDL)
- IF(WINDOWS)
+ IF(WIN32)
IF(CMAKE_BUILD_TOOL STREQUAL nmake)
- SET(vtkWrapIDL_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL.exe)
+ SET(vtkWrapIDL_EXEFILE ${PROJECT_BINARY_DIR}/src/VTKWrapping/vtkWrapIDL.exe)
ELSE(CMAKE_BUILD_TOOL STREQUAL nmake)
- SET(vtkWrapIDL_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/vtkWrapIDL.exe)
+ SET(vtkWrapIDL_EXEFILE ${PROJECT_BINARY_DIR}/src/VTKWrapping/${CMAKE_BUILD_TYPE}/vtkWrapIDL.exe)
ENDIF(CMAKE_BUILD_TOOL STREQUAL nmake)
- ENDIF(WINDOWS)
+ ENDIF(WIN32)
ADD_CUSTOM_COMMAND(
OUTPUT PARAVIS_Gen_${VAL}.idl
COMMAND ${vtkWrapIDL_EXEFILE} -o PARAVIS_Gen_${VAL}.idl --hints hints ${PARAVIEW_INCLUDE_DIR0}/${VAL}.h
SET(_link_LIBRARIES
${OMNIORB_LIBRARIES}
- ${QT_LIBS}
+ ${QT_LIBRARIES}
${CAS_KERNEL}
${PYTHON_LIBS}
${KERNEL_LDFLAGS} ${KERNEL_SalomeDS} ${KERNEL_SALOMELocalTrace} ${KERNEL_SalomeIDLKernel}
ENDIF(MED_INCLUDE_DIR)
IF(${MED_FOUND})
- IF(WINDOWS)
+ IF(WIN32)
SET(MED_LIBRARIES ${MED_LIBRARIES} ${HDF5_LIBS})
SET(MED_INCLUDE_DIRS ${MED_INCLUDE_DIR} ${HDF5_INCLUDE_DIR})
- ELSE(WINDOWS)
+ ELSE(WIN32)
FIND_PACKAGE(SalomeHDF5 REQUIRED)
SET(MED_LIBRARIES ${MED_LIBRARIES} ${HDF5_LIBRARIES})
SET(MED_INCLUDE_DIRS ${MED_INCLUDE_DIR} ${HDF5_INCLUDE_DIRS})
SET(MED_LIBRARIES ${MED_LIBRARIES} ${MPI_LIBRARY} ${MPI_EXTRA_LIBRARY})
SET(MED_INCLUDE_DIRS ${MED_INCLUDE_DIRS} ${MPI_INCLUDE_PATH})
ENDIF(${HDF5_IS_PARALLEL})
- ENDIF(WINDOWS)
+ ENDIF(WIN32)
ENDIF(${MED_FOUND})
SET(MED_INCLUDE_DIR ${MED_INCLUDE_DIRS})
${OMNIORB_LIBRARIES}
${MED_SalomeIDLMED}
${KERNEL_SalomeIDLKernel}
- ${QT_LIBS}
+ ${QT_LIBRARIES}
)
TARGET_LINK_LIBRARIES(ParaMEDCorbaPlugin
ParaMEDMEM2VTK
ADD_LIBRARY(vtkVisuTableReader ${READER_SRCS})
-TARGET_LINK_LIBRARIES(vtkVisuTableReader ${VTK_LIBRARIES} ${vtkInfovis} ${QT_LIBS})
+TARGET_LINK_LIBRARIES(vtkVisuTableReader ${VTK_LIBRARIES} ${vtkInfovis} ${QT_LIBRARIES})
INSTALL(
TARGETS vtkVisuTableReader
# ADD_DEFINITIONS(-DVTK_PARSE_LEGACY_REMOVE)
#ENDIF()
+ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
+
FOREACH(name ${_wrap_PROGRAMS})
ADD_EXECUTABLE(${name}
ParaView/vtkParse.tab.c
TARGET_LINK_LIBRARIES(${name} ${PLATFORM_LIBADD})
SET(${name}_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/${name})
- IF(WINDOWS)
+ IF(WIN32)
IF(CMAKE_BUILD_TOOL STREQUAL nmake)
SET(${name}_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/${name}.exe)
ELSE(CMAKE_BUILD_TOOL STREQUAL nmake)
SET(${name}_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/${name}.exe)
ENDIF(CMAKE_BUILD_TOOL STREQUAL nmake)
- ENDIF(WINDOWS)
+ ENDIF(WIN32)
INSTALL(FILES ${${name}_EXEFILE} DESTINATION bin/salome PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
ENDFOREACH(name ${_wrap_PROGRAMS})
# Make the list of wrapped files visible from the top directory (will be used in PVGUI and idl):
SET(WRAP_IDL_I_HH "${WRAP_IDL_I_HH}" PARENT_SCOPE)
-SET(WRAP_IDL_I_CC "${WRAP_IDL_I_CC}" PARENT_SCOPE)
+SET(WRAP_IDL_I_CC "${WRAP_IDL_I_CC}" PARENT_SCOPE)
\ No newline at end of file
LIST(APPEND WRAP_IDL_I_CC PARAVIS_Gen_${VAL}_i.cc)
SET(vtkWrapIDL_HH_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_HH)
- IF(WINDOWS)
+ IF(WIN32)
IF(CMAKE_BUILD_TOOL STREQUAL nmake)
SET(vtkWrapIDL_HH_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_HH.exe)
ELSE(CMAKE_BUILD_TOOL STREQUAL nmake)
SET(vtkWrapIDL_HH_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/vtkWrapIDL_HH.exe)
ENDIF(CMAKE_BUILD_TOOL STREQUAL nmake)
- ENDIF(WINDOWS)
+ ENDIF(WIN32)
ADD_CUSTOM_COMMAND(
OUTPUT PARAVIS_Gen_${VAL}_i.hh
)
SET(vtkWrapIDL_CC_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_CC)
- IF(WINDOWS)
+ IF(WIN32)
IF(CMAKE_BUILD_TOOL STREQUAL nmake)
SET(vtkWrapIDL_CC_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_CC.exe)
ELSE(CMAKE_BUILD_TOOL STREQUAL nmake)
SET(vtkWrapIDL_CC_EXEFILE ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/vtkWrapIDL_CC.exe)
ENDIF(CMAKE_BUILD_TOOL STREQUAL nmake)
- ENDIF(WINDOWS)
+ ENDIF(WIN32)
ADD_CUSTOM_COMMAND(
OUTPUT PARAVIS_Gen_${VAL}_i.cc