markow
3 years ago
6 changed files with 100 additions and 0 deletions
@ -0,0 +1,9 @@
|
||||
set(CMAKE_AR /usr/bin/arm-linux-gnueabihf-ar) |
||||
set(CMAKE_ASM_COMPILER /usr/bin/arm-linux-gnueabihf-as) |
||||
set(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc) |
||||
set(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++) |
||||
set(CMAKE_LINKER /usr/bin/arm-linux-gnueabihf-ld) |
||||
set(CMAKE_OBJCOPY /usr/bin/arm-linux-gnueabihf-objcopy) |
||||
set(CMAKE_RANLIB /usr/bin/arm-linux-gnueabihf-ranlib) |
||||
set(CMAKE_SIZE /usr/bin/arm-linux-gnueabihf-size) |
||||
set(CMAKE_STRIP /usr/bin/arm-linux-gnueabihf-strip) |
@ -0,0 +1,23 @@
|
||||
set(DEVLIB devLib) |
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
||||
|
||||
add_library(${DEVLIB}Obj OBJECT |
||||
ds1302.c |
||||
maxdetect.c |
||||
piNes.c |
||||
gertboard.c |
||||
piFace.c |
||||
lcd128x64.c |
||||
lcd.c |
||||
scrollPhat.c |
||||
piGlow.c) |
||||
|
||||
add_library(${DEVLIB} STATIC $<TARGET_OBJECTS:${DEVLIB}Obj>) |
||||
add_library(${DEVLIB}shared SHARED $<TARGET_OBJECTS:${DEVLIB}Obj>) |
||||
set_target_properties(${DEVLIB}shared PROPERTIES OUTPUT_NAME ${DEVLIB}) |
||||
|
||||
install(TARGETS ${DEVLIB} ${DEVLIB}shared |
||||
RUNTIME DESTINATION bin |
||||
LIBRARY DESTINATION lib |
||||
ARCHIVE DESTINATION lib) |
@ -0,0 +1,17 @@
|
||||
set(GPIO gpio) |
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
||||
|
||||
add_library(${GPIO}Obj OBJECT |
||||
gpio.c |
||||
readall.c |
||||
OrangePi.c) |
||||
|
||||
add_library(${GPIO} STATIC $<TARGET_OBJECTS:${GPIO}Obj>) |
||||
add_library(${GPIO}shared SHARED $<TARGET_OBJECTS:${GPIO}Obj>) |
||||
set_target_properties(${GPIO}shared PROPERTIES OUTPUT_NAME ${GPIO}) |
||||
|
||||
install(TARGETS ${GPIO} ${GPIO}shared |
||||
RUNTIME DESTINATION bin |
||||
LIBRARY DESTINATION lib |
||||
ARCHIVE DESTINATION lib) |
@ -0,0 +1,50 @@
|
||||
set(WIRINGPI wiringPi) |
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
||||
|
||||
add_library(${WIRINGPI}Obj OBJECT |
||||
wiringPi.c |
||||
wiringSerial.c |
||||
wiringShift.c |
||||
piHiPri.c |
||||
piThread.c |
||||
wiringPiSPI.c |
||||
wiringPiI2C.c |
||||
softPwm.c |
||||
softTone.c |
||||
mcp23008.c |
||||
mcp23016.c |
||||
mcp23017.c |
||||
mcp23s08.c |
||||
mcp23s17.c |
||||
sr595.c |
||||
pcf8574.c |
||||
pcf8591.c |
||||
mcp3002.c |
||||
mcp3004.c |
||||
mcp4802.c |
||||
mcp3422.c |
||||
max31855.c |
||||
max5322.c |
||||
ads1115.c |
||||
sn3218.c |
||||
bmp180.c |
||||
htu21d.c |
||||
ds18b20.c |
||||
rht03.c |
||||
drcSerial.c |
||||
drcNet.c |
||||
pseudoPins.c |
||||
wpiExtensions.c |
||||
w25q64.c |
||||
oled.c |
||||
OrangePi.c) |
||||
|
||||
add_library(${WIRINGPI} STATIC $<TARGET_OBJECTS:${WIRINGPI}Obj>) |
||||
add_library(${WIRINGPI}shared SHARED $<TARGET_OBJECTS:${WIRINGPI}Obj>) |
||||
set_target_properties(${WIRINGPI}shared PROPERTIES OUTPUT_NAME ${WIRINGPI}) |
||||
|
||||
install(TARGETS ${WIRINGPI} ${WIRINGPI}shared |
||||
RUNTIME DESTINATION bin |
||||
LIBRARY DESTINATION lib |
||||
ARCHIVE DESTINATION lib) |
Loading…
Reference in new issue