source: src/tests/CMakeLists.txt@ 17ef75d

Last change on this file since 17ef75d was 915dc18, checked in by Joachim Langenbach <joachim.langenbach@…>, 11 years ago
  • Working c++ library webserviceclient class, which allows to register a station
    • Added tests for the webserviceclient class
    • Improved build system
    • Fixed some errors in Webservice Location.php and WebserviceApi.php
  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[915dc18]1######################
2#
3# Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
4#
5# This library is free software; you can redistribute it and/or
6# modify it under the terms of the GNU Lesser General Public
7# License as published by the Free Software Foundation; either
8# version 2.1 of the License, or (at your option) any later version.
9#
10# This library is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14#
15# You should have received a copy of the GNU Lesser General Public
16# License along with this library; if not, write to the Free Software
17# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18# MA 02110-1301 USA.
19#
20######################
21
22INCLUDE_DIRECTORIES(
23 ${CMAKE_CURRENT_BINARY_DIR}
24 ${CMAKE_CURRENT_SOURCE_DIR}
25 ${libsiweather_SOURCE_DIR}
26 ${libsiweather_BINARY_DIR}
27 ${libsiweather_testing_SOURCE_DIR}
28 ${libsiweather_testing_BINARY_DIR}
29)
30ADD_DEFINITIONS(${QT_DEFINITIONS})
31
32#######################
33#
34# SiWeatherStation Test
35#
36#######################
37
38SET(test_CPP
39 siweatherstationtest.cpp
40)
41
42ADD_EXECUTABLE(testsiweatherstationtest ${test_CPP})
43TARGET_LINK_LIBRARIES(testsiweatherstationtest ${QT_LIBRARIES} libsiweather libsiweather_testing)
44qt5_use_modules(testsiweatherstationtest Core Test)
45ADD_TEST(TestSiWeatherStation ${EXECUTABLE_OUTPUT_PATH}/testsiweatherstationtest)
46
47#######################
48#
49# SiWebserviceClient Test
50#
51#######################
52
53SET(test_CPP
54 siwebserviceclienttest.cpp
55)
56
57ADD_EXECUTABLE(testsiwebserviceclient ${test_CPP})
58TARGET_LINK_LIBRARIES(testsiwebserviceclient ${QT_LIBRARIES} libsiweather libsiweather_testing)
59qt5_use_modules(testsiwebserviceclient Core Test)
60ADD_TEST(TestSiWebserviceClient ${EXECUTABLE_OUTPUT_PATH}/testsiwebserviceclient)
Note: See TracBrowser for help on using the repository browser.