From: akl Date: Thu, 5 Sep 2013 12:24:40 +0000 (+0000) Subject: Adaptation of HYDRO to standard procedure of building SALOME modules on Windows platform X-Git-Tag: BR_hydro_v_0_1~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=df4b53b331bde1dc61e040d12f180009b5ecc468;p=modules%2Fhydro.git Adaptation of HYDRO to standard procedure of building SALOME modules on Windows platform --- diff --git a/CMake/CommonInstall.cmake b/CMake/CommonInstall.cmake index 5e6a62c0..93f23a5e 100644 --- a/CMake/CommonInstall.cmake +++ b/CMake/CommonInstall.cmake @@ -1,2 +1,2 @@ -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) diff --git a/CMakeLists.txt b/CMakeLists.txt index 029935f1..7dd75c55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required (VERSION 2.6) 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) diff --git a/src/HYDROData/CMakeLists.txt b/src/HYDROData/CMakeLists.txt index 39d804ed..3b9f345a 100644 --- a/src/HYDROData/CMakeLists.txt +++ b/src/HYDROData/CMakeLists.txt @@ -38,7 +38,7 @@ include_directories( ) 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) diff --git a/src/HYDROGUI/CMakeLists.txt b/src/HYDROGUI/CMakeLists.txt index 44f68a46..b7ccdae9 100644 --- a/src/HYDROGUI/CMakeLists.txt +++ b/src/HYDROGUI/CMakeLists.txt @@ -96,7 +96,11 @@ include_directories( ) 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) @@ -115,3 +119,4 @@ FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png") 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}) + diff --git a/src/HYDROOperations/CMakeLists.txt b/src/HYDROOperations/CMakeLists.txt index a6a8ac07..8dda9f0f 100644 --- a/src/HYDROOperations/CMakeLists.txt +++ b/src/HYDROOperations/CMakeLists.txt @@ -26,7 +26,7 @@ include_directories( ) 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) diff --git a/src/HYDROOperations/HYDROOperations_BSpline.h b/src/HYDROOperations/HYDROOperations_BSpline.h index 20b9c859..0fb9134f 100644 --- a/src/HYDROOperations/HYDROOperations_BSpline.h +++ b/src/HYDROOperations/HYDROOperations_BSpline.h @@ -14,13 +14,13 @@ * 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& thePoints); + HYDROOperations_BSpline(QList& thePoints); //! Returns the BSpline curve passing through the points //! \returns Null if Computation of BSpline was failed