Merge remote-tracking branch 'rsa/tizen_2.2' into tizen
[apps/core/preloaded/wrt-setting.git] / CMakeLists.txt
1 #
2 # Copyright 2012  Samsung Electronics Co., Ltd
3 #
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
7 #
8 #     http://floralicense.org/license/
9 #
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.
15 #
16
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
21
22 # BUILD FLAGS
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")
30
31 ADD_SUBDIRECTORY(webapp-detail)
32 ADD_SUBDIRECTORY(po)
33 ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALE_DIR}\"")