-install(TARGETS ${PROJECT_LIBRARIES} RUNTIME DESTINATION bin/salome LIBRARY DESTINATION lib/salome)
+install(TARGETS ${PROJECT_LIBRARIES} DESTINATION lib/salome)
install(FILES ${PROJECT_HEADERS} DESTINATION include)
project (HYDRO)
+IF(WINDOWS)
+ ADD_DEFINITIONS(-DWNT)
+ENDIF(WINDOWS)
+
SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
IF(EXISTS ${KERNEL_ROOT_DIR})
INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindKERNEL.cmake)
)
add_library(HYDROData SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
-target_link_libraries(HYDROData ${CAS_OCAF})
+target_link_libraries(HYDROData ${CAS_OCAF} ${QT_LIBRARIES})
set(PROJECT_LIBRARIES HYDROData)
)
add_library(HYDROGUI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${PROJECT_HEADERS_MOC})
-target_link_libraries(HYDROGUI ${CAS_OCAF} HYDROData HYDROOperations -L${GEOM_ROOT_DIR}/lib/salome/ -lCurveCreator)
+target_link_libraries(HYDROGUI HYDROData HYDROOperations
+ ${CAS_TKV3d}
+ ${LightApp} ${CAM} ${suit} ${qtx} ${ObjBrowser} ${GraphicsView} ${std} ${Event} ${OCCViewer}
+ ${CurveCreator}
+ )
set(PROJECT_LIBRARIES HYDROGUI)
FILE(GLOB GUIXML_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.xml")
SET(GUI_DATA ${GUIPNG_DATA} ${GUIXML_DATA})
INSTALL(FILES ${GUI_DATA} DESTINATION ${HYDRO_salomeres_DATA})
+
)
add_library(HYDROOperations SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
-target_link_libraries(HYDROOperations ${CAS_MODELER} ${ImageComposer} HYDROData)
+target_link_libraries(HYDROOperations ${CAS_TKG3d} ${CAS_TKGeomBase} ${CAS_TKGeomAlgo} ${ImageComposer} HYDROData)
set(PROJECT_LIBRARIES HYDROOperations)
* manipulation and conversion.
*/
-class HYDROOperations_BSpline
+class HYDROOPERATIONS_EXPORT HYDROOperations_BSpline
{
public:
//! Creates a spline by list of coordinates: pairs X and Y
//! \param thePoints coordinates in format X1, Y1, X2, Y2, etc. must be even number of elements
- HYDROOPERATIONS_EXPORT HYDROOperations_BSpline(QList<double>& thePoints);
+ HYDROOperations_BSpline(QList<double>& thePoints);
//! Returns the BSpline curve passing through the points
//! \returns Null if Computation of BSpline was failed