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

source: CMakeLists.txt@ 92c9c7c

Last change on this file since 92c9c7c was 92c9c7c, checked in by Joachim Langenbach <joachim.langenbach@…>, 11 years ago
  • Improved htaccess rewrite rule (but not working right now)
    • started to implement database connection
    • Improved host url handling
    • Improved external handling

Signed-off-by: Joachim Langenbach <joachim.langenbach@…>

  • 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)
[92c9c7c]44SET(WEBSERVICE_BASE_URL "/siweather/webservice/v${WEBSERVICE_API_VERSION}" CACHE TYPE STRING)
[16cceaa]45
46SET(BUILD_DEBUG_WANTED ${BUILD_DEBUG})
47SET(WITH_WEBSERVICE_WANTED ${WITH_WEBSERVICE})
48SET(WITH_WEBCLIENT_WANTED ${WITH_WEBCLIENT})
49SET(WITH_CLIENT_WANTED ${WITH_CLIENT})
50SET(WITH_LOCAL_PHPSLIM_WANTED ${WITH_LOCAL_PHPSLIM})
[1c92d58]51SET(WITH_LOCAL_PHPGUZZLE_WANTED ${WITH_LOCAL_PHPGUZZLE})
[16cceaa]52
53# enable automatic moc by CMAKE
54SET(CMAKE_AUTOMOC ON)
55
56SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -fPIC")
57IF(NOT APPLE)
58 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
59ENDIF(NOT APPLE)
60IF(MSVC)
61 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_EXCEPTIONS -Zc:wchar_t-")
62ELSE(MSVC)
63 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")
64ENDIF(MSVC)
65IF(NOT WIN32 AND NOT APPLE)
66# SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--fatal-warnings -lc --disable-auto-import")
67 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--fatal-warnings -lc")
68 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi")
69ENDIF(NOT WIN32 AND NOT APPLE)
70IF(BUILD_DEBUG AND NOT MSVC)
71 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
72 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
73ENDIF(BUILD_DEBUG AND NOT MSVC)
74ADD_DEFINITIONS(${QT_DEFINITIONS})
75
76# directory to install binaries
77SET(bin_DIR ${CMAKE_INSTALL_PREFIX}/bin)
78IF(WIN32)
79 SET(bin_DIR .)
80ENDIF(WIN32)
81
82# shared library directory ($LIB_INSTALL_DIR)
83# and directory for plugins, translations, ... ($share_DIR)
84IF(NOT WIN32)
85 SET(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib/" CACHE STRING "Where to install the library files to")
86ENDIF(NOT WIN32)
87SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
88IF(UNIX)
89 SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
90 SET(share_DIR ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME})
91 SET(man_DIR ${CMAKE_INSTALL_PREFIX}/share/man)
92ELSE(UNIX)
93 SET(LIB_INSTALL_DIR ${bin_DIR})
94 SET(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
95 SET(share_DIR ${bin_DIR})
96 SET(man_DIR ${bin_DIR}/man)
97ENDIF(UNIX)
98# directory to install language files
99SET(qm_DIR ${share_DIR}/lang)
100#directory to install rcc files
101SET(rcc_DIR ${share_DIR}/rcc)
102# directory to install dependency files
103SET(depends_DIR ${share_DIR}/depends)
104SET(apidocs_DIR ${share_DIR}/apidocs)
105SET(pkgconfig_DIR ${LIB_INSTALL_DIR}/pkgconfig/)
106SET(WEB_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/htdocs)
[1c92d58]107SET(WEB_TEST_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/webtests")
[16cceaa]108
109ADD_SUBDIRECTORY(src)
110ADD_SUBDIRECTORY(externals)
111
112# printing chosen configuration
113MESSAGE("######################################################")
114MESSAGE("")
115MESSAGE("CONFIGURATION")
116MESSAGE("")
117MESSAGE("CMAKE_SHARED_LINKER_FLAGS: ${CMAKE_SHARED_LINKER_FLAGS}")
118MESSAGE("CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
119MESSAGE("CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
120MESSAGE("")
121MESSAGE("OPTIONS:")
122MESSAGE(" Name Wanted Used")
123MESSAGE(" BUILD_DEBUG: ${BUILD_DEBUG_WANTED} ${BUILD_DEBUG}")
124MESSAGE(" WITH_WEBSERVICE: ${WITH_WEBSERVICE_WANTED} ${WITH_WEBSERVICE}")
125MESSAGE(" WITH_WEBCLIENT: ${WITH_WEBCLIENT_WANTED} ${WITH_WEBCLIENT}")
126MESSAGE(" WITH_CLIENT: ${WITH_CLIENT_WANTED} ${WITH_CLIENT}")
127MESSAGE(" WITH_LOCAL_PHPSLIM: ${WITH_LOCAL_PHPSLIM_WANTED} ${WITH_LOCAL_PHPSLIM}")
[1c92d58]128MESSAGE(" WITH_LOCAL_PHPGUZZLE: ${WITH_LOCAL_PHPGUZZLE_WANTED} ${WITH_LOCAL_PHPGUZZLE}")
[16cceaa]129MESSAGE("")
130MESSAGE("######################################################")
Note: See TracBrowser for help on using the repository browser.