APPLINK-6507. Add sending OnHMIStatus after policy check on app activation.
[profile/ivi/smartdevicelink.git] / tools / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.3)
2
3 include(ExternalProject)
4
5 set(intergen_SOURCES "${CMAKE_CURRENT_LIST_DIR}/intergen")
6 set(intergen_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/intergen")
7 set(intergen_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/intergen")
8 set(intergen_CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${intergen_INSTALL_DIR})
9
10 ExternalProject_Add(intergen
11                     SOURCE_DIR ${intergen_SOURCES}
12                     PREFIX ${intergen_PREFIX}
13                     INSTALL_DIR ${intergen_INSTALL_DIR}
14                     CMAKE_ARGS ${intergen_CMAKE_ARGS})
15
16 # This will force intergen make call every time core is built
17 # When intergen source didn't change no files are updated
18 # It is required to automatically rebuild interfaces if intergen was changed
19 ExternalProject_Add_Step(intergen forcebuild
20                          COMMAND ${CMAKE_COMMAND} -E echo "Force intergen build"
21                          DEPENDEES update DEPENDERS build
22                          ALWAYS 1)