Salome HOME
3cb8978f0ed822ba00cba5514bb426a6be3c4824
[modules/gui.git] / src / TreeData / Test / CMakeLists.txt
1 # Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
20
21 INCLUDE_DIRECTORIES(
22   ${OMNIORB_INCLUDE_DIR}
23   ${QT_INCLUDES}
24   ${CMAKE_CURRENT_BINARY_DIR}
25   ${KERNEL_ROOT_DIR}/include/salome
26   ${CMAKE_SOURCE_DIR}/src/GuiHelpers
27   ${CMAKE_SOURCE_DIR}/src/TreeData
28 )
29
30 SET(COMMON_LIBS
31   ${CORBA_LIBS}
32   ${QT_LIBRARIES}
33   SalomeTreeData
34   SalomeGuiHelpers
35   ${SalomeLifeCycleCORBA}
36   ${SalomeKernelHelpers}
37 )
38
39 SET(GUI_HEADERS mainwindow.hxx)
40 QT4_WRAP_CPP(GUI_HEADERS ${GUI_HEADERS})
41 SET(GUI_FORMS mainwindow.ui)
42 QT4_WRAP_UI(GUI_FORMS_HEADERS ${GUI_FORMS})
43
44 SET(TreeData_guitester_SOURCES
45   testhelper.cxx
46   guitester.cxx
47   mainwindow.cxx
48   MyDataModel.cxx
49 )
50
51 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${QT_DEFINITIONS})
52
53 ADD_EXECUTABLE(TreeData_guitester ${TreeData_guitester_SOURCES} ${GUI_HEADERS} ${GUI_FORMS_HEADERS})
54 TARGET_LINK_LIBRARIES(TreeData_guitester ${COMMON_LIBS})
55
56 SET(TreeData_tester_SOURCES
57   tester.cxx
58   MyDataModel.cxx
59 )
60
61 ADD_EXECUTABLE(TreeData_tester ${TreeData_tester_SOURCES})
62 TARGET_LINK_LIBRARIES(TreeData_tester ${COMMON_LIBS})
63
64 INSTALL(TARGETS TreeData_guitester TreeData_tester DESTINATION ${GUI_salomebin_BINS})