close Warning: AdminModule failed with TracError: Unable to instantiate component <class 'trac.ticket.admin.TicketTypeAdminPanel'> (super(type, obj): obj (type TicketTypeAdminPanel) is not an instance or subtype of type (Markup).)

source: CMakeLists.txt@ 69c8290

Last change on this file since 69c8290 was 69c8290, checked in by Joachim Langenbach <joachim.langenbach@…>, 11 years ago
  • Property mode set to 100644
File size: 5.4 KB
RevLine 
[16cceaa]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
22CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)
23
24SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
25
26PROJECT(siweather)
27
28SET(TARGET_VERSION_MAJOR 0 )
29SET(TARGET_VERSION_MINOR 1 )
30SET(${PROJECT_NAME}_PATCH_LEVEL 0 )
31SET(${PROJECT_NAME}_VERSION
32 "${TARGET_VERSION_MAJOR}.${TARGET_VERSION_MINOR}.${${PROJECT_NAME}_PATCH_LEVEL}" )
33SET(VERSION ${${PROJECT_NAME}_VERSION})
[1c92d58]34SET(WEBSERVICE_API_VERSION "0.1")
[16cceaa]35
36INCLUDE(CTest)
37
38OPTION(BUILD_DEBUG "Build in debug mode" OFF)
39OPTION(WITH_WEBSERVICE "Build webservice" ON)
40OPTION(WITH_WEBCLIENT "Build web client" OFF)
41OPTION(WITH_CLIENT "Build client (runs on the weather station)" OFF)
42OPTION(WITH_LOCAL_PHPSLIM "Install PHP slim from this repository" OFF)
[1c92d58]43OPTION(WITH_LOCAL_PHPGUZZLE "Install PHP Guzzle from this repository" OFF)
[552da81]44SET(WEBSERVICE_BASE_URL "/siweather/webservice/${WEBSERVICE_API_VERSION}" CACHE TYPE STRING)
[69c8290]45SET(WEBSERVICE_GEONAMES_USERNAME "" CACHE TYPE STRING)
[16cceaa]46
47SET(BUILD_DEBUG_WANTED ${BUILD_DEBUG})
48SET(WITH_WEBSERVICE_WANTED ${WITH_WEBSERVICE})
49SET(WITH_WEBCLIENT_WANTED ${WITH_WEBCLIENT})
50SET(WITH_CLIENT_WANTED ${WITH_CLIENT})
51SET(WITH_LOCAL_PHPSLIM_WANTED ${WITH_LOCAL_PHPSLIM})
[1c92d58]52SET(WITH_LOCAL_PHPGUZZLE_WANTED ${WITH_LOCAL_PHPGUZZLE})
[16cceaa]53
54# enable automatic moc by CMAKE
55SET(CMAKE_AUTOMOC ON)
56
57SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -fPIC")
58IF(NOT APPLE)
59 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
60ENDIF(NOT APPLE)
61IF(MSVC)
62 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_EXCEPTIONS -Zc:wchar_t-")
63ELSE(MSVC)
64 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -DQT_NO_EXCEPTIONS -fno-check-new -fno-common")
65ENDIF(MSVC)
66IF(NOT WIN32 AND NOT APPLE)
67# SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--fatal-warnings -lc --disable-auto-import")
68 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--fatal-warnings -lc")
69 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi")
70ENDIF(NOT WIN32 AND NOT APPLE)
71IF(BUILD_DEBUG AND NOT MSVC)
72 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
73 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
74ENDIF(BUILD_DEBUG AND NOT MSVC)
75ADD_DEFINITIONS(${QT_DEFINITIONS})
76
77# directory to install binaries
78SET(bin_DIR ${CMAKE_INSTALL_PREFIX}/bin)
79IF(WIN32)
80 SET(bin_DIR .)
81ENDIF(WIN32)
82
83# shared library directory ($LIB_INSTALL_DIR)
84# and directory for plugins, translations, ... ($share_DIR)
85IF(NOT WIN32)
86 SET(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib/" CACHE STRING "Where to install the library files to")
87ENDIF(NOT WIN32)
88SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
89IF(UNIX)
90 SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
91 SET(share_DIR ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME})
92 SET(man_DIR ${CMAKE_INSTALL_PREFIX}/share/man)
93ELSE(UNIX)
94 SET(LIB_INSTALL_DIR ${bin_DIR})
95 SET(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
96 SET(share_DIR ${bin_DIR})
97 SET(man_DIR ${bin_DIR}/man)
98ENDIF(UNIX)
99# directory to install language files
100SET(qm_DIR ${share_DIR}/lang)
101#directory to install rcc files
102SET(rcc_DIR ${share_DIR}/rcc)
103# directory to install dependency files
104SET(depends_DIR ${share_DIR}/depends)
105SET(apidocs_DIR ${share_DIR}/apidocs)
106SET(pkgconfig_DIR ${LIB_INSTALL_DIR}/pkgconfig/)
107SET(WEB_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/htdocs)
[1c92d58]108SET(WEB_TEST_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/webtests")
[16cceaa]109
110ADD_SUBDIRECTORY(src)
111ADD_SUBDIRECTORY(externals)
112
113# printing chosen configuration
114MESSAGE("######################################################")
115MESSAGE("")
116MESSAGE("CONFIGURATION")
117MESSAGE("")
118MESSAGE("CMAKE_SHARED_LINKER_FLAGS: ${CMAKE_SHARED_LINKER_FLAGS}")
119MESSAGE("CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
120MESSAGE("CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
121MESSAGE("")
122MESSAGE("OPTIONS:")
123MESSAGE(" Name Wanted Used")
124MESSAGE(" BUILD_DEBUG: ${BUILD_DEBUG_WANTED} ${BUILD_DEBUG}")
125MESSAGE(" WITH_WEBSERVICE: ${WITH_WEBSERVICE_WANTED} ${WITH_WEBSERVICE}")
126MESSAGE(" WITH_WEBCLIENT: ${WITH_WEBCLIENT_WANTED} ${WITH_WEBCLIENT}")
127MESSAGE(" WITH_CLIENT: ${WITH_CLIENT_WANTED} ${WITH_CLIENT}")
128MESSAGE(" WITH_LOCAL_PHPSLIM: ${WITH_LOCAL_PHPSLIM_WANTED} ${WITH_LOCAL_PHPSLIM}")
[1c92d58]129MESSAGE(" WITH_LOCAL_PHPGUZZLE: ${WITH_LOCAL_PHPGUZZLE_WANTED} ${WITH_LOCAL_PHPGUZZLE}")
[16cceaa]130MESSAGE("")
131MESSAGE("######################################################")
Note: See TracBrowser for help on using the repository browser.