wiringPi for Orange Pi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
455 B

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)