From 4e3040ddfcb6e24198d1dab909eb59b94d34b437 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 6 Sep 2017 15:05:51 +0300 Subject: [PATCH] update of HYDRO code for Windows compilation --- doc/CMakeLists.txt | 5 ++++- src/HYDROData/HYDROData_Entity.h | 2 +- src/HYDROData/HYDROData_IProfilesInterpolator.h | 3 +-- src/HYDRO_tests/CMakeLists.txt | 12 ++++++------ 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index cedf6566..0e7747d4 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(WIN32) + ADD_SUBDIRECTORY(salome) +ENDIF(WIN32) 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..fa0b3eca 100644 --- a/src/HYDROData/HYDROData_IProfilesInterpolator.h +++ b/src/HYDROData/HYDROData_IProfilesInterpolator.h @@ -27,8 +27,7 @@ #include #include #include - -class gp_XYZ; +#include /** diff --git a/src/HYDRO_tests/CMakeLists.txt b/src/HYDRO_tests/CMakeLists.txt index ae4abb61..1a6f2cf8 100644 --- a/src/HYDRO_tests/CMakeLists.txt +++ b/src/HYDRO_tests/CMakeLists.txt @@ -67,28 +67,28 @@ IF( ${WIN32} ) add_definitions( -DWNT -D__WIN32__ -D__x86__ -D_WIN64 -D_WIN32_WINNT=0x0400 -D__NT__ -D__OSVERSION__=4 ) ENDIF() -SET( CPPUNIT_INCLUDES $ENV{CPPUNIT_ROOT}/include ) +SET( CPPUNIT_INCLUDES $ENV{CPPUNIT_ROOT_DIR}/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 Qt5Cored Qt5Guid Qt5Testd ) 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 ) ELSE() -- 2.39.2