]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
compilation OK
authorPaul RASCLE <paul.rascle@edf.fr>
Fri, 20 Nov 2015 14:46:55 +0000 (15:46 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Fri, 20 Nov 2015 14:46:55 +0000 (15:46 +0100)
CMakeLists.txt
src/HYDROData/CMakeLists.txt
src/HYDROData/HYDROData_Channel.h
src/HYDROData/HYDROData_Entity.h
src/HYDRO_tests/CMakeLists.txt

index f761151fb739233e6ec04ad661e0633466703f78..0393c0617d6fdb1a178b746a1d5a80d9c2dc2055 100644 (file)
@@ -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()
index 05f4f8a405f7fc1965a07cd6cb72d0d67bb0b042..d6689d13d24665ad5cfc4fb7f0c04c6b761fc3f1 100644 (file)
@@ -137,6 +137,7 @@ add_definitions(
 include_directories(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
+  ${KERNEL_INCLUDE_DIRS}
   ${GUI_INCLUDE_DIRS}
   ${CMAKE_CURRENT_SOURCE_DIR}/../shapelib
 )
index 0cd9c4a1235f44c16b6b54741ab7579bf4ce9cc4..372e57a7a46facbf470ec4881cf62f43562ad9cc 100644 (file)
@@ -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.
index 491955de735a858a677df3d6fe14d660fdc9b954..6d51a47a2060b3b08dd8137f6aff35cd3c1e0c35 100644 (file)
@@ -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
index f41a9c59ada71c7ad62af0cdc1eb63cb04d05a92..07fa477d001eec583bb3747117774a20b1577ad5 100644 (file)
@@ -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" )