TZIVI-254: IVI needs a newer version of cmake
[profile/ivi/cmake.git] / Tests / CrossCompile / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.6)
2 PROJECT(CrossCompile)
3
4 UNSET(run_result CACHE)
5
6 #Simulate the cross compile condition
7 SET(CMAKE_CROSSCOMPILING ON)
8
9 ADD_EXECUTABLE(CrossCompile main.c)
10
11 TRY_RUN(run_result compile_result
12     ${CrossCompile_BINARY_DIR}  
13     ${CrossCompile_SOURCE_DIR}/main.c)