###################### # # Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. # # 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., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301 USA. # ###################### INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${libsiweather_SOURCE_DIR} ${libsiweather_BINARY_DIR} ${libsiweather_testing_SOURCE_DIR} ${libsiweather_testing_BINARY_DIR} ) ADD_DEFINITIONS(${QT_DEFINITIONS}) ####################### # # SiWeatherStation Test # ####################### SET(test_CPP siweatherstationtest.cpp ) ADD_EXECUTABLE(testsiweatherstationtest ${test_CPP}) TARGET_LINK_LIBRARIES(testsiweatherstationtest ${QT_LIBRARIES} libsiweather libsiweather_testing) qt5_use_modules(testsiweatherstationtest Core Test) ADD_TEST(TestSiWeatherStation ${EXECUTABLE_OUTPUT_PATH}/testsiweatherstationtest) ####################### # # SiWebserviceClient Test # ####################### SET(test_CPP siwebserviceclienttest.cpp ) ADD_EXECUTABLE(testsiwebserviceclient ${test_CPP}) TARGET_LINK_LIBRARIES(testsiwebserviceclient ${QT_LIBRARIES} libsiweather libsiweather_testing) qt5_use_modules(testsiwebserviceclient Core Test) ADD_TEST(TestSiWebserviceClient ${EXECUTABLE_OUTPUT_PATH}/testsiwebserviceclient)