merge wrt-plugins-tizen_0.2.0-13
[profile/ivi/wrt-plugins-tizen.git] / src / CMakeLists.txt
1 # Includes CMake configuration file (*.cmake), preserving appropriate paths.
2 macro(include_config_file INCLUDED_CONFIG_FILE_PATH)
3   get_filename_component(CURRENT_CONFIG_FILE_PATH ${CMAKE_CURRENT_LIST_FILE} PATH)
4   include(${CURRENT_CONFIG_FILE_PATH}/${INCLUDED_CONFIG_FILE_PATH}/${CONFIG_FILE_NAME} OPTIONAL)
5 endmacro()
6
7 # Gets actual path for CMake configuration file (*.cmake).
8 # By default, if no argument is passed, current path will be set to variable
9 # named CURRENT_PATH.
10 # @param [Optional] Name of the variable to set with current path.
11 macro(get_current_path)
12   set(VARIABLE "CURRENT_PATH")
13   if (${ARGC} GREATER 0)
14     set(VARIABLE ${ARGV0})
15   endif ()
16   get_filename_component(${VARIABLE} ${CMAKE_CURRENT_LIST_FILE} PATH)
17 endmacro()
18
19 set(HOST_ARCH $ENV{DEB_HOST_ARCH})
20 if("${HOST_ARCH}" MATCHES "armel")
21     set(HOST_ARCH "armel")
22 endif()
23
24 add_subdirectory(platform)
25 add_subdirectory(standards)
26