include(../../CMake/Common.cmake)
-include(../../CMake/UsePyQt4EXT.cmake)
-#include(UsePyQt4)
-
-# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
# --- resources ---
# sip files / to be processed by sip
-SET(_sip_files
+SET(_sip_input_file
HYDROData.sip
)
-SET(_add_SOURCES
+SET(_sip_output_files
${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPycmodule.cc
${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPygp_XY.cc
${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPygp_XYZ.cc
${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_BathymetryAltitudePoint.cc
)
-# --- sources ---
-
-# sources / sip wrappings
-PYQT4_WRAP_SIP_EXT( _sip_SOURCES ${_sip_files} ) # SOURCES ${_add_SOURCES})
-
-# sources / to compile
-SET(HYDROPy_SOURCES ${_sip_SOURCES} ${_add_SOURCES})
-
-# --- rules ---
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${_sip_output_files}
+ COMMAND ${SIP_EXECUTABLE} ${PYQT_SIPFLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/${_sip_input_file}
+ MAIN_DEPENDENCY ${_sip_input_file}
+)
-ADD_LIBRARY(HYDROPy ${HYDROPy_SOURCES})
+ADD_LIBRARY(HYDROPy ${_sip_output_files} )
TARGET_LINK_LIBRARIES(HYDROPy ${_link_LIBRARIES})
INSTALL(TARGETS HYDROPy EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})