mirror of
https://github.com/3cky/mbusd.git
synced 2024-10-01 04:27:42 +02:00
cmake: moved arm_gnueabi target into cmake dir
This commit is contained in:
parent
73e50aa851
commit
982e32b48a
@ -26,7 +26,7 @@ build:deb_armhf:
|
|||||||
script:
|
script:
|
||||||
- mkdir output.dir/
|
- mkdir output.dir/
|
||||||
- cd output.dir
|
- cd output.dir
|
||||||
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../arm_linux_gnueabihf.cmake ../
|
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../cmake/arm_linux_gnueabihf.cmake ../
|
||||||
- make package
|
- make package
|
||||||
|
|
||||||
build:deb_x86:
|
build:deb_x86:
|
||||||
|
12
cmake/arm_linux_gnueabihf.cmake
Normal file
12
cmake/arm_linux_gnueabihf.cmake
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# this one is important
|
||||||
|
SET(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
|
||||||
|
# specify the cross compiler
|
||||||
|
SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)
|
||||||
|
## for c++ support `install g++-arm-linux-gnueabihf`
|
||||||
|
#SET(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++)
|
||||||
|
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
Loading…
Reference in New Issue
Block a user