From: Paul RASCLE Date: Fri, 20 Nov 2015 14:46:55 +0000 (+0100) Subject: compilation OK X-Git-Tag: SALOME_HYDRO_V1.0~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ebd916cfc8fbb2b19e79d61a2d2d66801460af85;p=modules%2Fhydro.git compilation OK --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f761151f..0393c061 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,8 +3,6 @@ INCLUDE(CMakeDependentOption) PROJECT(SalomeHYDRO C CXX) -ADD_SUBDIRECTORY (src/HYDRO_tests) - # Ensure a proper linker behavior: CMAKE_POLICY(SET CMP0003 NEW) @@ -179,6 +177,7 @@ ADD_SUBDIRECTORY (src/HYDROData) ADD_SUBDIRECTORY (src/HYDROGUI) ADD_SUBDIRECTORY (src/HYDROPy) ADD_SUBDIRECTORY (src/HYDROTools) +ADD_SUBDIRECTORY (src/HYDRO_tests) IF(SALOME_BUILD_DOC) ADD_SUBDIRECTORY(doc) ENDIF() diff --git a/src/HYDROData/CMakeLists.txt b/src/HYDROData/CMakeLists.txt index 05f4f8a4..d6689d13 100644 --- a/src/HYDROData/CMakeLists.txt +++ b/src/HYDROData/CMakeLists.txt @@ -137,6 +137,7 @@ add_definitions( include_directories( ${CAS_INCLUDE_DIRS} ${QT_INCLUDES} + ${KERNEL_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/../shapelib ) diff --git a/src/HYDROData/HYDROData_Channel.h b/src/HYDROData/HYDROData_Channel.h index 0cd9c4a1..372e57a7 100644 --- a/src/HYDROData/HYDROData_Channel.h +++ b/src/HYDROData/HYDROData_Channel.h @@ -101,16 +101,6 @@ public: */ HYDRODATA_EXPORT virtual TopoDS_Shape GetRightShape() const; - /** - * Returns the left edge of the channel. - */ - HYDRODATA_EXPORT virtual TopoDS_Shape GetLeftShape() const; - - /** - * Returns the right edge of the channel. - */ - HYDRODATA_EXPORT virtual TopoDS_Shape GetRightShape() const; - /** * Update the shape presentations of stream. * Call this method whenever you made changes for channel data. diff --git a/src/HYDROData/HYDROData_Entity.h b/src/HYDROData/HYDROData_Entity.h index 491955de..6d51a47a 100644 --- a/src/HYDROData/HYDROData_Entity.h +++ b/src/HYDROData/HYDROData_Entity.h @@ -437,8 +437,6 @@ protected: int GetGeomChangeFlag() const; - int GetGeomChangeFlag() const; - protected: /// Array of pointers to the properties of this object; index in this array is returned by \a AddProperty. TDF_Label myLab; ///< label of this object diff --git a/src/HYDRO_tests/CMakeLists.txt b/src/HYDRO_tests/CMakeLists.txt index f41a9c59..07fa477d 100644 --- a/src/HYDRO_tests/CMakeLists.txt +++ b/src/HYDRO_tests/CMakeLists.txt @@ -59,28 +59,28 @@ IF( ${WIN32} ) add_definitions( -DWNT ) ENDIF() -SET( BOOST_INCLUDES $ENV{BOOST_ROOT_DIR}/include/boost-1_52 ) -SET( CPPUNIT_INCLUDES $ENV{CPPUNIT_ROOT_DIR}/include ) -SET( CAS_INCLUDES $ENV{CAS_ROOT_DIR}/inc ) -SET( QT_INCLUDES $ENV{QT4_ROOT_DIR}/include $ENV{QT4_ROOT_DIR}/include/QtCore $ENV{QT4_ROOT_DIR}/include/QtGui $ENV{QT4_ROOT_DIR}/include/QtTest ) +SET( BOOST_INCLUDES $ENV{BOOST_ROOT}/include/boost-1_52 ) +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( GUI_INCLUDES $ENV{GUI_ROOT_DIR}/include/salome ) SET( GEOM_INCLUDES $ENV{GEOM_ROOT_DIR}/include/salome ) IF( ${WIN32} ) - link_directories( $ENV{CAS_ROOT_DIR}/win32/libd ) + link_directories( $ENV{CASROOT}/win32/libd ) ELSE() - link_directories( $ENV{CAS_ROOT_DIR}/lib ) + link_directories( $ENV{CASROOT}/lib ) 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{QT4_ROOT_DIR}/lib ) +link_directories( $ENV{QTDIR}/lib ) IF( ${WIN32} ) SET( QT_LIBRARIES QtCored4 QtGuid4 QtTestd4 ) ELSE() SET( QT_LIBRARIES QtCore QtGui QtTest ) ENDIF() -link_directories( $ENV{CPPUNIT_ROOT_DIR}/lib ) +link_directories( $ENV{CPPUNIT_ROOT}/lib ) IF( ${WIN32} ) SET( CPPUNIT_LIBRARIES cppunitd ) ELSE() @@ -106,7 +106,7 @@ include_directories( source_group( "External files" FILES ${EXTERNAL_FILES} ) add_executable( HYDROData_tests ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${EXTERNAL_FILES} ${PROJECT_MOC_HEADERS} ) -target_link_libraries( HYDROData_tests ${GUI_LIBRARIES} ${GEOM_LIBRARIES} ${CAS_LIBRARIES} ${QT_LIBRARIES} ${CPPUNIT_LIBRARIES} shapelib ) +target_link_libraries( HYDROData_tests ${GUI_LIBRARIES} ${GEOM_LIBRARIES} ${CAS_LIBRARIES} ${QT_LIBRARIES} ${CPPUNIT_LIBRARIES} shapelib HYDROData) IF( ${WIN32} ) add_custom_command( TARGET HYDROData_tests POST_BUILD COMMAND $(TargetPath) COMMENT "Running tests" )