CMake: moved DefaultSettings to separate file
[profile/ivi/layer-management.git] / cmake / modules / DefaultSettings.txt
1 ############################################################################
2 #
3 # Copyright 2012 BMW Car IT GmbH
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 ############################################################################
18
19 #==============================================================================
20 # set default build type, if not defined by user
21 #==============================================================================
22 if (NOT CMAKE_BUILD_TYPE)
23     set(CMAKE_BUILD_TYPE Release CACHE STRING
24                          "Choose build type: Debug, Release, RelWithDebInfo, MinSizeRel."
25                          FORCE)
26     message(STATUS "Build type not defined. Using default build type 'Release'.")
27 endif (NOT CMAKE_BUILD_TYPE)
28
29 #==============================================================================
30 # define shared library build mode
31 #==============================================================================
32 if (WITH_STATIC_LIBRARIES)
33     set (LIBRARY_BUILDMODE "STATIC")
34 else (WITH_STATIC_LIBRARIES)
35     set (LIBRARY_BUILDMODE "SHARED")
36 endif (WITH_STATIC_LIBRARIES)
37
38
39 #==============================================================================
40 # set default build parameters
41 #==============================================================================
42 include_directories(
43     ${CMAKE_SOURCE_DIR}/config
44     ${CMAKE_SOURCE_DIR}/3rdParty
45     ${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include
46 )
47
48
49 #==============================================================================
50 # Internal global settings not available to user
51 #==============================================================================
52 set (STATICALLY_LINKED_PLUGINS "" CACHE INTERNAL "list of static plugins")
53