include(../../CMake/Common.cmake) include(../../CMake/UseQT4EXT.cmake) # --- options --- # additional include directories INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIRS} ${PTHREAD_INCLUDE_DIR} ${CAS_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS} ${GEOM_ROOT_DIR}/include/salome ${GUI_ROOT_DIR}/include/salome ) # additional preprocessor / compiler flags ADD_DEFINITIONS( -DCURVECREATOR_EXPORTS ${CAS_DEFINITIONS} ${QT_DEFINITIONS} ) # libraries to link to SET(_link_LIBRARIES ${GEOM_GEOMUtils} ${GUI_qtx} ${GUI_suit} ${GUI_OCCViewer} ) # --- headers --- # header files / to be processed by moc SET(_moc_HEADERS CurveCreator_NewSectionDlg.h CurveCreator_TreeView.h # CurveCreator_UndoOptsDlg.h CurveCreator_Widget.h ) # header files / no processing SET(_other_HEADERS CurveCreator.hxx CurveCreator_Curve.hxx CurveCreator_Diff.hxx CurveCreator_ICurve.hxx CurveCreator_Listener.hxx CurveCreator_Macro.hxx CurveCreator_Operation.hxx CurveCreator_Section.hxx ) # header files / to install SET(CurveCreator_HEADERS ${_moc_HEADERS} ${_other_HEADERS}) # --- sources --- # sources / moc wrappings QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) # sources / static SET(_other_SOURCES CurveCreator_Curve.cxx CurveCreator_Diff.cxx CurveCreator_Operation.cxx ) LIST(APPEND _other_SOURCES CurveCreator_NewSectionDlg.cxx CurveCreator_TreeView.cxx # CurveCreator_UndoOptsDlg.cxx CurveCreator_Widget.cxx ) # sources / to compile SET(CurveCreator_SOURCES ${_other_SOURCES} ${_moc_SOURCES}) # --- rules --- ADD_LIBRARY(HYDROCurveCreator ${CurveCreator_SOURCES} ${CurveCreator_HEADERS}) TARGET_LINK_LIBRARIES(HYDROCurveCreator ${_link_LIBRARIES}) set(PROJECT_HEADERS ${CurveCreator_SOURCES}) set(PROJECT_LIBRARIES HYDROCurveCreator) include(../../CMake/CommonInstall.cmake)