#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- ############################################################ # Nonin plugin CMakeList ############################################################ PROJECT(rpigpio) # define header and source files for the library set (RPIGPIO_HEADER_FILES include/plugin.h include/rpipin.h include/rpilcd.h include/rpiservo.h include/rpishiftdriver.h include/rpii2c.h include/rpiPCA9685.h include/rpiecho.h ) if (Scol_STATIC) set (RPIGPIO_HEADER_FILES ${RPIGPIO_HEADER_FILES} include/loadScolrpiGPIO.h) endif() set (RPIGPIO_SOURCE_FILES src/plugin.cpp src/rpipin.cpp src/rpilcd.cpp src/rpiservo.cpp src/rpishiftdriver.cpp src/rpii2c.cpp src/rpiPCA9685.cpp src/rpiecho.cpp ) scol_include_plugin("RPIGPIO" "${PROJECT_SOURCE_DIR}/include" "loadScolrpiGPIO.h") # Add directories includes include_directories(include) set(RPIGPIO_LIBRARIES "") # link wiringpi if (RPI) find_host_package(WiringPi) include_directories(${WiringPi_INCLUDE_DIRS}) set(RPIGPIO_LIBRARIES ${WiringPi_LIBRARIES}) endif() # setup Scol rpigpio plugin target add_library(rpigpio ${Scol_LIB_TYPE} ${RPIGPIO_HEADER_FILES} ${RPIGPIO_SOURCE_FILES} ) add_dependencies(rpigpio kernel) # set the dll version. #set_target_properties(rpigpio PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR}) target_link_libraries(rpigpio ${RPIGPIO_LIBRARIES}) # install Scol rpigpio scol_config_plugin(rpigpio) #install(FILES ${RPIGPIO_HEADER_FILES} DESTINATION include/SCOL/plugins/rpigpio)