first re-commit.
This commit is contained in:
39
pigpio-master/cmake/FindRT.cmake
Normal file
39
pigpio-master/cmake/FindRT.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# FindRT.cmake - Try to find the RT library
|
||||
# Once done this will define
|
||||
#
|
||||
# RT_FOUND - System has rt
|
||||
# RT_INCLUDE_DIR - The rt include directory
|
||||
# RT_LIBRARIES - The libraries needed to use rt
|
||||
# RT_DEFINITIONS - Compiler switches required for using rt
|
||||
#
|
||||
# Also creates an import target called RT::RT
|
||||
|
||||
find_path (RT_INCLUDE_DIR NAMES time.h
|
||||
PATHS
|
||||
/usr
|
||||
/usr/local
|
||||
/opt
|
||||
PATH_SUFFIXES
|
||||
)
|
||||
|
||||
find_library(RT_LIBRARIES NAMES rt
|
||||
PATHS
|
||||
/usr
|
||||
/usr/local
|
||||
/opt
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(rt DEFAULT_MSG RT_LIBRARIES RT_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(RT_INCLUDE_DIR RT_LIBRARIES)
|
||||
|
||||
if (NOT TARGET RT::RT)
|
||||
add_library(RT::RT INTERFACE IMPORTED)
|
||||
|
||||
set_target_properties(RT::RT PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${RT_INCLUDE_DIR}
|
||||
INTERFACE_LINK_LIBRARIES ${RT_LIBRARIES}
|
||||
)
|
||||
endif()
|
1
pigpio-master/cmake/pigpioConfig.cmake
Normal file
1
pigpio-master/cmake/pigpioConfig.cmake
Normal file
@@ -0,0 +1 @@
|
||||
include (${CMAKE_CURRENT_LIST_DIR}/pigpioTargets.cmake)
|
24
pigpio-master/cmake/setup.py.in
Normal file
24
pigpio-master/cmake/setup.py.in
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from distutils.core import setup
|
||||
|
||||
setup(name='pigpio',
|
||||
version='1.44',
|
||||
author='joan',
|
||||
author_email='joan@abyz.me.uk',
|
||||
maintainer='joan',
|
||||
maintainer_email='joan@abyz.me.uk',
|
||||
url='http://abyz.me.uk/rpi/pigpio/python.html',
|
||||
description='Raspberry Pi GPIO module',
|
||||
long_description='Raspberry Pi Python module to access the pigpio daemon',
|
||||
download_url='http://abyz.me.uk/rpi/pigpio/pigpio.zip',
|
||||
license='unlicense.org',
|
||||
py_modules=['pigpio'],
|
||||
keywords=['raspberrypi', 'gpio',],
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 2",
|
||||
"Programming Language :: Python :: 3",
|
||||
],
|
||||
package_dir={ '': '${CMAKE_CURRENT_SOURCE_DIR}'}
|
||||
)
|
||||
|
Reference in New Issue
Block a user