From 49d2f9dd9efdc678c33daebea5c7069ac81ba19c Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 19 Sep 2017 11:33:18 +0300 Subject: [PATCH] patch for compilation on Windows --- doc/CMakeLists.txt | 5 ++++- src/HYDROData/HYDROData_Entity.h | 2 +- src/HYDROData/HYDROData_IProfilesInterpolator.h | 2 +- src/HYDRO_tests/CMakeLists.txt | 12 ++++++------ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index cedf6566..fa9c47dd 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -20,4 +20,7 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -ADD_SUBDIRECTORY(salome) +IF(WIN32) +ELSE() + ADD_SUBDIRECTORY(salome) +ENDIF() \ No newline at end of file diff --git a/src/HYDROData/HYDROData_Entity.h b/src/HYDROData/HYDROData_Entity.h index de46bb12..7042b8d0 100644 --- a/src/HYDROData/HYDROData_Entity.h +++ b/src/HYDROData/HYDROData_Entity.h @@ -414,7 +414,7 @@ protected: public: - virtual bool CompareLabels(const Handle(HYDROData_Entity)& theOtherObj); + HYDRODATA_EXPORT virtual bool CompareLabels(const Handle(HYDROData_Entity)& theOtherObj); protected: diff --git a/src/HYDROData/HYDROData_IProfilesInterpolator.h b/src/HYDROData/HYDROData_IProfilesInterpolator.h index 1bbc4754..df09b7c6 100644 --- a/src/HYDROData/HYDROData_IProfilesInterpolator.h +++ b/src/HYDROData/HYDROData_IProfilesInterpolator.h @@ -27,8 +27,8 @@ #include #include #include +#include -class gp_XYZ; /** diff --git a/src/HYDRO_tests/CMakeLists.txt b/src/HYDRO_tests/CMakeLists.txt index ae4abb61..0160bb91 100644 --- a/src/HYDRO_tests/CMakeLists.txt +++ b/src/HYDRO_tests/CMakeLists.txt @@ -69,28 +69,28 @@ ENDIF() SET( CPPUNIT_INCLUDES $ENV{CPPUNIT_ROOT}/include ) SET( CAS_INCLUDES $ENV{CASROOT}/inc ) -SET( QT_INCLUDES $ENV{QTDIR}/include $ENV{QTDIR}/include/QtCore $ENV{QTDIR}/include/QtGui $ENV{QTDIR}/include/QtTest ) +SET( QT_INCLUDES $ENV{QT_ROOT_DIR}/include $ENV{QT_ROOT_DIR}/include/QtCore $ENV{QT_ROOT_DIR}/include/QtGui $ENV{QT_ROOT_DIR}/include/QtTest ) SET( KERNEL_INCLUDES $ENV{KERNEL_ROOT_DIR}/include/salome ) SET( GUI_INCLUDES $ENV{GUI_ROOT_DIR}/include/salome ) SET( GEOM_INCLUDES $ENV{GEOM_ROOT_DIR}/include/salome ) IF( ${WIN32} ) - link_directories( $ENV{CASROOT}/win32/libd ) + link_directories( $ENV{CASROOT}/win64/vc10/lib ) ELSE() link_directories( $ENV{CASROOT}/lib $ENV{TBB_ROOT_DIR}/lib/intel64/gcc4.4 ) ENDIF() SET( CAS_LIBRARIES TKernel TKLCAF TKCAF TKCDF TKMath TKG2d TKG3d TKBRep TKGeomBase TKTopAlgo TKGeomAlgo TKBool TKShHealing TKXSBase TKOffset TKHLR TKBO TKV3d TKService TKMesh ) -link_directories( $ENV{QTDIR}/lib ) +link_directories( $ENV{QT_ROOT_DIR}/lib ) IF( ${WIN32} ) - SET( QT_LIBRARIES QtCored4 QtGuid4 QtTestd4 ) + SET( QT_LIBRARIES Qt5Core Qt5Gui Qt5Test ) ELSE() SET( QT_LIBRARIES QtCore QtGui QtTest ) ENDIF() -link_directories( $ENV{CPPUNIT_ROOT}/lib ) +link_directories( $ENV{CPPUNIT_ROOT_DIR}/lib ) IF( ${WIN32} ) - SET( CPPUNIT_LIBRARIES cppunitd ) + SET( CPPUNIT_LIBRARIES cppunit ) ELSE() SET( CPPUNIT_LIBRARIES cppunit ) ENDIF() -- 2.39.2