Fix not to release json_object on Event(Reply)
[src/libhomescreen.git] / CMakeLists.txt
1 #
2 # Copyright (c) 2017 TOYOTA MOTOR CORPORATION
3 #
4 # Licensed under the Apache License, Version 2.0 (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://www.apache.org/licenses/LICENSE-2.0
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 project(libhomescreen C CXX)
18
19 cmake_minimum_required(VERSION 2.8)
20
21 set(PROJECT_NAME "LIBHOMESCREEN")
22 set(PROJECT_VERSION "1.0")
23 set(PROJECT_PRETTY_NAME "LIBHOMESCREEN")
24 set(PROJECT_DESCRIPTION "Library for accessing agl service homescreen 2017 with C/C++")
25 set(PROJECT_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR})
26 set(PROJECT_LIBDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
27 set(LIBHOMESCREEN_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include)
28
29 # get pkgconfig
30 INCLUDE(FindPkgConfig)
31 link_libraries(-Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined)
32
33 set(CMAKE_BUILD_TYPE Debug)
34 set(USE_HMI_DEBUG FALSE)
35
36 add_subdirectory(src)
37 add_subdirectory(include)
38
39 #generate configure file
40 configure_file(libhomescreen.pc.in libhomescreen.pc @ONLY)
41 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libhomescreen.pc
42   DESTINATION
43   ${CMAKE_INSTALL_LIBDIR}/pkgconfig)