| 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 | SET(files_UI
|
|---|
| 23 | )
|
|---|
| 24 |
|
|---|
| 25 | SET(files_CPP
|
|---|
| 26 | webserverprocess.cpp
|
|---|
| 27 | )
|
|---|
| 28 |
|
|---|
| 29 | INCLUDE_DIRECTORIES(
|
|---|
| 30 | ${CMAKE_CURRENT_BINARY_DIR}
|
|---|
| 31 | ${CMAKE_CURRENT_SOURCE_DIR}
|
|---|
| 32 | )
|
|---|
| 33 | ADD_DEFINITIONS(-DSI_BUILD_TESTING)
|
|---|
| 34 | SET(LINK_LIBRARIES ${QT_LIBRARIES})
|
|---|
| 35 | SET(LIBOUTDIR ${LIBRARY_OUTPUT_PATH})
|
|---|
| 36 | SET(SHAREDIR ${share_DIR})
|
|---|
| 37 | SET(WEBSERVICE_SERVER_DOCROOT ${WEB_OUTPUT_DIRECTORY})
|
|---|
| 38 | CONFIGURE_FILE(
|
|---|
| 39 | ${CMAKE_CURRENT_SOURCE_DIR}/sitestingconfig.h.in
|
|---|
| 40 | ${CMAKE_CURRENT_BINARY_DIR}/sitestingconfig.h
|
|---|
| 41 | )
|
|---|
| 42 |
|
|---|
| 43 | # QT5_WRAP_UI(libengsas_UI_H ${libengsas_UI})
|
|---|
| 44 | # QT5_ADD_TRANSLATION(libengsas_TRANS ${libengsas_TS})
|
|---|
| 45 |
|
|---|
| 46 | ADD_LIBRARY(libsiweather_testing SHARED
|
|---|
| 47 | ${files_CPP}
|
|---|
| 48 | # ${files_UI_H}
|
|---|
| 49 | # ${files_TRANS}
|
|---|
| 50 | )
|
|---|
| 51 |
|
|---|
| 52 | TARGET_LINK_LIBRARIES(libsiweather_testing
|
|---|
| 53 | ${LINK_LIBRARIES}
|
|---|
| 54 | )
|
|---|
| 55 |
|
|---|
| 56 | qt5_use_modules(libsiweather_testing Core Network Test)
|
|---|
| 57 |
|
|---|
| 58 | SET_TARGET_PROPERTIES(libsiweather_testing PROPERTIES
|
|---|
| 59 | OUTPUT_NAME "siweather-testing"
|
|---|
| 60 | VERSION ${TARGET_VERSION_MAJOR}.${TARGET_VERSION_MINOR}.${${PROJECT_NAME}_PATCH_LEVEL}
|
|---|
| 61 | SOVERSION ${TARGET_VERSION_MAJOR})
|
|---|
| 62 |
|
|---|
| 63 | # INSTALL(
|
|---|
| 64 | # FILES ${files_TRANS}
|
|---|
| 65 | # DESTINATION ${qm_DIR}
|
|---|
| 66 | # COMPONENT library
|
|---|
| 67 | # )
|
|---|
| 68 |
|
|---|
| 69 | # SET(LIBENGSAS_VERSION ${${PROJECT_NAME}_VERSION})
|
|---|
| 70 | # SET(QTVERSION "${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}")
|
|---|
| 71 | # SET(depends_XML ${CMAKE_BINARY_DIR}/depends/libengsas-core.xml)
|
|---|
| 72 | # CONFIGURE_FILE(libengsas-core.xml.in ${depends_XML})
|
|---|
| 73 | # INSTALL(
|
|---|
| 74 | # FILES ${depends_XML}
|
|---|
| 75 | # DESTINATION ${depends_DIR}
|
|---|
| 76 | # COMPONENT library
|
|---|
| 77 | # )
|
|---|