]> SALOME platform Git repositories - modules/gui.git/blob - src/TreeData/Test/CMakeLists.txt
Salome HOME
Merge from V6_main (04/10/2012)
[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_DIRS}
23   ${QT_INCLUDE_DIRS}
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_LIBS}
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.hxx
46   testhelper.cxx
47   guitester.cxx
48   mainwindow.hxx
49   mainwindow.cxx
50   MyDataModel.hxx
51   MyDataModel.cxx
52 )
53
54 ADD_EXECUTABLE(TreeData_guitester ${TreeData_guitester_SOURCES} ${GUI_HEADERS} ${GUI_FORMS_HEADERS})
55 SET_TARGET_PROPERTIES(TreeData_guitester PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS} ${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
56 TARGET_LINK_LIBRARIES(TreeData_guitester ${COMMON_LIBS})
57
58 SET(TreeData_tester_SOURCES
59   tester.cxx
60   MyDataModel.cxx
61 )
62
63 ADD_EXECUTABLE(TreeData_tester ${TreeData_tester_SOURCES})
64 SET_TARGET_PROPERTIES(TreeData_tester PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS} ${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
65 TARGET_LINK_LIBRARIES(TreeData_tester ${COMMON_LIBS})
66
67 INSTALL(TARGETS TreeData_guitester TreeData_tester DESTINATION ${GUI_salomebin_BINS})