Graphic: moved ViewportTransform unit test to LayerMangerBase/tests
[profile/ivi/layer-management.git] / LayerManagerUtils / CMakeLists.txt
1 ############################################################################
2
3 # Copyright 2010, 2011 BMW Car IT GmbH
4
5
6 # Licensed under the Apache License, Version 2.0 (the "License"); 
7 # you may not use this file except in compliance with the License. 
8 # You may obtain a copy of the License at 
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0 
11 #
12 # Unless required by applicable law or agreed to in writing, software 
13 # distributed under the License is distributed on an "AS IS" BASIS, 
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
15 # See the License for the specific language governing permissions and 
16 # limitations under the License.
17 #
18 ############################################################################
19
20 cmake_minimum_required (VERSION 2.6)
21
22 project(LayerManagerUtils)
23 project_type(CORE)
24
25 find_package (Threads)
26
27 add_library(${PROJECT_NAME} STATIC
28     src/Bitmap.cpp
29     src/IlmMatrix.cpp
30     src/Log.cpp
31     src/LogMessageBuffer.cpp
32     src/ThreadBase.cpp
33     src/IpcModuleLoader.cpp
34 )
35
36 set(INCLUDE_DIRS
37     "include"
38     "${CMAKE_SOURCE_DIR}/config"
39 )
40
41 set(LIBS
42     ${LIBS}
43     ${CMAKE_THREAD_LIBS_INIT}
44     dl
45 )
46
47 if (WITH_DLT)
48
49     find_package(AutomotiveDlt REQUIRED)
50
51     set(INCLUDE_DIRS
52         ${INCLUDE_DIRS}
53         ${DLT_INCLUDE_DIR}
54     )
55
56     set(LIBS
57         ${LIBS}
58         ${DLT_LIBRARY}
59     )
60
61     target_link_libraries(${PROJECT_NAME} ${LIBS})
62
63 endif (WITH_DLT)
64
65 include_directories(${INCLUDE_DIRS})
66
67 install(FILES
68             include/Log.h
69             include/LogMessageBuffer.h
70             include/IlmMatrix.h
71             include/Bitmap.h
72         DESTINATION
73             include/layermanager
74 )
75
76 install(TARGETS
77             ${PROJECT_NAME}
78         DESTINATION
79             lib/layermanager/static
80 )
81
82 add_subdirectory(tests)
83