mirror of
				https://github.com/3cky/mbusd
				synced 2025-10-26 23:46:44 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			428 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			428 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # 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) | 
