2 # Copyright 2012 Samsung Electronics Co., Ltd
4 # Licensed under the Flora License, Version 1.1 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://floralicense.org/license/
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
18 INCLUDE(FindPkgConfig)
19 ADD_DEFINITIONS("-Wall") # Generate all warnings
20 ADD_DEFINITIONS("-Wextra") # Generate even more extra warnings
23 SET(CMAKE_BUILD_TYPE "Release")
24 SET(CMAKE_C_FLAGS_PROFILING "-O0 -g -pg")
25 SET(CMAKE_CXX_FLAGS_PROFILING "-O0 -std=c++0x -g -pg")
26 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
27 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -std=c++0x -g")
28 SET(CMAKE_C_FLAGS_RELEASE "-O2 -g")
29 SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -std=c++0x -g")
31 ADD_SUBDIRECTORY(webapp-detail)
33 ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALE_DIR}\"")