# Copyright (C) 2012-2015  CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#

INCLUDE(UseQt4Ext)

# --- options ---

# additional include directories
INCLUDE_DIRECTORIES(
  ${QT_INCLUDES}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${GUI_INCLUDE_DIRS}
)

# additional preprocessor / compiler flags
ADD_DEFINITIONS(
  ${QT_DEFINITIONS}
)

# libraries to link to
SET(_link_LIBRARIES
  ${QT_LIBRARIES}
  ${GUI_SalomeApp}
  )

# --- resources ---

# resource files / to be processed by uic
SET(_uic_files
  DlgRef_1Check1Spin1Check_QTD.ui
  DlgRef_1List1Spin1Btn_QTD.ui
  DlgRef_1Sel1Check1List_QTD.ui
  DlgRef_1Sel1Check1Sel_QTD.ui
  DlgRef_1Sel1Check_QTD.ui
  DlgRef_1Sel1Frame_QTD.ui
  DlgRef_1Sel1List1Check3Btn_QTD.ui
  DlgRef_1Sel1Spin1Check_QTD.ui
  DlgRef_1Sel1Spin_QTD.ui
  DlgRef_1Sel2Spin1View1Check_QTD.ui
  DlgRef_1Sel2Spin_QTD.ui
  DlgRef_1Sel3Check_QTD.ui
  DlgRef_1Sel3Spin1Check_QTD.ui
  DlgRef_1Sel3Spin2Check1Spin_QTD.ui
  DlgRef_1Sel3Spin_QTD.ui
  DlgRef_1Sel5Spin1Check_QTD.ui
  DlgRef_1SelExt_QTD.ui
  DlgRef_1Sel_QTD.ui
  DlgRef_1Spin_QTD.ui
  DlgRef_2Sel1List1Check_QTD.ui
  DlgRef_2Sel1List2Check_QTD.ui
  DlgRef_2Sel1List_QTD.ui
  DlgRef_2Sel1Spin2Check_QTD.ui
  DlgRef_2Sel1Spin3Check1Spin_QTD.ui
  DlgRef_2Sel1SpinInt_QTD.ui
  DlgRef_2Sel1Spin_QTD.ui
  DlgRef_2Sel2List_QTD.ui
  DlgRef_2Sel2Spin1Check_QTD.ui
  DlgRef_2Sel2Spin1Push_QTD.ui
  DlgRef_2Sel2Spin2Push_QTD.ui
  DlgRef_2Sel2Spin3Check_QTD.ui
  DlgRef_2Sel2Spin_QTD.ui
  DlgRef_2Sel3Spin2Rb_QTD.ui
  DlgRef_2Sel3Spin_QTD.ui
  DlgRef_2Sel3Spin1Check_QTD.ui
  DlgRef_2SelExt_QTD.ui
  DlgRef_2Sel_QTD.ui
  DlgRef_2Spin_QTD.ui
  DlgRef_3Check_QTD.ui
  DlgRef_3Radio1Sel1Spin_QTD.ui
  DlgRef_3Radio_QTD.ui
  DlgRef_3Sel1Check_QTD.ui
  DlgRef_3Sel1Spin_QTD.ui
  DlgRef_3Sel2Check3Spin_QTD.ui
  DlgRef_3Sel2Spin_QTD.ui
  DlgRef_3Sel3Spin1Check_QTD.ui
  DlgRef_3Sel3Spin2Check_QTD.ui
  DlgRef_3Sel4Spin2Check_QTD.ui
  DlgRef_3Sel_QTD.ui
  DlgRef_3Spin1Check_QTD.ui
  DlgRef_3Spin1CheckCyl_QTD.ui
  DlgRef_3Spin_QTD.ui
  DlgRef_4Sel1List1Check_QTD.ui
  DlgRef_4Sel1List_QTD.ui
  DlgRef_4Sel1Spin2Check_QTD.ui
  DlgRef_4Sel1Spin3Check_QTD.ui
  DlgRef_4Spin_QTD.ui
  DlgRef_6Sel_QTD.ui
  )

# --- headers ---

# header files / to be processed by moc
SET(_moc_HEADERS DlgRef.h)

# header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files})

# --- sources ---

# sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})

# sources / to compile
SET(DlgRef_SOURCES DlgRef.cxx ${_moc_SOURCES} ${_uic_HEADERS})

# --- rules ---

ADD_LIBRARY(DlgRef ${DlgRef_SOURCES})
TARGET_LINK_LIBRARIES(DlgRef ${_link_LIBRARIES})

INSTALL(TARGETS DlgRef EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
