1 ############################################################################
3 # Copyright 2012 BMW Car IT GmbH
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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 ############################################################################
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."
26 message(STATUS "Build type not defined. Using default build type 'Release'.")
27 endif (NOT CMAKE_BUILD_TYPE)
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)
39 #==============================================================================
40 # set default build parameters
41 #==============================================================================
43 ${CMAKE_SOURCE_DIR}/config
44 ${CMAKE_SOURCE_DIR}/3rdParty
45 ${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include
49 #==============================================================================
50 # Internal global settings not available to user
51 #==============================================================================
52 set (STATICALLY_LINKED_PLUGINS "" CACHE INTERNAL "list of static plugins")