blob: 9ef7a8733ebde5407f0e57adaf832d57f3433949 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
cmake_minimum_required (VERSION 2.6)
PROJECT(CrossCompile)
#Simulate the cross compile condition
SET(CMAKE_SYSTEM_NAME "systemName")
SET(CMAKE_CROSSCOMPILING ON)
ADD_EXECUTABLE(CrossCompile main.c)
TRY_RUN(run_result compile_result
${CrossCompile_BINARY_DIR}
${CrossCompile_SOURCE_DIR}/main.c)
|