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