| 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 |
|
|---|
| 22 | INCLUDE_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 | )
|
|---|
| 30 | ADD_DEFINITIONS(${QT_DEFINITIONS})
|
|---|
| 31 |
|
|---|
| 32 | #######################
|
|---|
| 33 | #
|
|---|
| 34 | # SiWeatherStation Test
|
|---|
| 35 | #
|
|---|
| 36 | #######################
|
|---|
| 37 |
|
|---|
| 38 | SET(test_CPP
|
|---|
| 39 | siweatherstationtest.cpp
|
|---|
| 40 | )
|
|---|
| 41 |
|
|---|
| 42 | ADD_EXECUTABLE(testsiweatherstationtest ${test_CPP})
|
|---|
| 43 | TARGET_LINK_LIBRARIES(testsiweatherstationtest ${QT_LIBRARIES} libsiweather libsiweather_testing)
|
|---|
| 44 | qt5_use_modules(testsiweatherstationtest Core Test)
|
|---|
| 45 | ADD_TEST(TestSiWeatherStation ${EXECUTABLE_OUTPUT_PATH}/testsiweatherstationtest)
|
|---|
| 46 |
|
|---|
| 47 | #######################
|
|---|
| 48 | #
|
|---|
| 49 | # SiWebserviceClient Test
|
|---|
| 50 | #
|
|---|
| 51 | #######################
|
|---|
| 52 |
|
|---|
| 53 | SET(test_CPP
|
|---|
| 54 | siwebserviceclienttest.cpp
|
|---|
| 55 | )
|
|---|
| 56 |
|
|---|
| 57 | ADD_EXECUTABLE(testsiwebserviceclient ${test_CPP})
|
|---|
| 58 | TARGET_LINK_LIBRARIES(testsiwebserviceclient ${QT_LIBRARIES} libsiweather libsiweather_testing)
|
|---|
| 59 | qt5_use_modules(testsiwebserviceclient Core Test)
|
|---|
| 60 | ADD_TEST(TestSiWebserviceClient ${EXECUTABLE_OUTPUT_PATH}/testsiwebserviceclient)
|
|---|