1 cmake_minimum_required(VERSION 2.8)
5 if (CONFIG_CARL9170FW_MAKE_RELEASE)
6 set(CMAKE_BUILD_TYPE Release)
7 endif (CONFIG_CARL9170FW_MAKE_RELEASE)
9 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/extra)
12 include("../config.cmake")
14 _COMPILER_DUMPVERSION(_COMPILER_VERSION)
16 if (("${_COMPILER_VERSION}" VERSION_GREATER 44) OR
17 ("${_COMPILER_VERSION}" VERSION_EQUAL 44))
19 include_directories (../include/linux ../include/shared ../include lib include)
23 if (CONFIG_CARL9170FW_BUILD_TOOLS_CARLU)
24 find_package(SDL QUIET)
25 find_package(USB-1.0 QUIET)
27 if ("${USB-1.0_FOUND}" AND "${SDL_FOUND}")
28 add_subdirectory(carlu)
30 if ("${USB-1.0_FOUND}")
31 MESSAGE(ERROR "LibUSB not found\n")
32 endif ("${USB-1.0_FOUND}")
34 MESSAGE(ERROR "SDL not found\n")
35 endif ("${SDL_FOUND}")
37 endif (CONFIG_CARL9170FW_BUILD_TOOLS_CARLU)