###################### # # 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. # ###################### SET(files_UI ) SET(files_CPP webserverprocess.cpp ) INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ) ADD_DEFINITIONS(-DSI_BUILD_TESTING) SET(LINK_LIBRARIES ${QT_LIBRARIES}) SET(LIBOUTDIR ${LIBRARY_OUTPUT_PATH}) SET(SHAREDIR ${share_DIR}) SET(WEBSERVICE_SERVER_DOCROOT ${WEB_OUTPUT_DIRECTORY}) CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/sitestingconfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/sitestingconfig.h ) # QT5_WRAP_UI(libengsas_UI_H ${libengsas_UI}) # QT5_ADD_TRANSLATION(libengsas_TRANS ${libengsas_TS}) ADD_LIBRARY(libsiweather_testing SHARED ${files_CPP} # ${files_UI_H} # ${files_TRANS} ) TARGET_LINK_LIBRARIES(libsiweather_testing ${LINK_LIBRARIES} ) qt5_use_modules(libsiweather_testing Core Network Test) SET_TARGET_PROPERTIES(libsiweather_testing PROPERTIES OUTPUT_NAME "siweather-testing" VERSION ${TARGET_VERSION_MAJOR}.${TARGET_VERSION_MINOR}.${${PROJECT_NAME}_PATCH_LEVEL} SOVERSION ${TARGET_VERSION_MAJOR}) # INSTALL( # FILES ${files_TRANS} # DESTINATION ${qm_DIR} # COMPONENT library # ) # SET(LIBENGSAS_VERSION ${${PROJECT_NAME}_VERSION}) # SET(QTVERSION "${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}") # SET(depends_XML ${CMAKE_BINARY_DIR}/depends/libengsas-core.xml) # CONFIGURE_FILE(libengsas-core.xml.in ${depends_XML}) # INSTALL( # FILES ${depends_XML} # DESTINATION ${depends_DIR} # COMPONENT library # )