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.
 
 
 
 
 

15 lines
496 B

  1. cmake_minimum_required(VERSION 3.10)
  2. project(WiringPiLib)
  3. # Read version from version.h
  4. file(READ "${CMAKE_CURRENT_SOURCE_DIR}/version.h" WIRINGPI_VERSION)
  5. string(REGEX REPLACE ".*VERSION \"([0-9]+.[0-9]+)\".*" "\\1" WIRINGPI_VERSION "${WIRINGPI_VERSION}")
  6. string(REGEX REPLACE "([0-9]+)\..*" "\\1" WIRINGPI_SOVERSION "${WIRINGPI_VERSION}")
  7. # Include subdirectories
  8. add_subdirectory(devLib)
  9. add_subdirectory(gpio)
  10. #add_subdirectory(pins)
  11. add_subdirectory(wiringPi)
  12. #add_subdirectory(wiringPiD)