mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
First tiny little steps towards a SWIG "hello world"
Config file handling and basic list handling is there.
This commit is contained in:
@@ -246,6 +246,16 @@ if(HAVE_LINUXGPIO)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# -------------------------------------
|
||||
# Find SWIG
|
||||
find_package(SWIG 4.0 COMPONENTS python)
|
||||
if(SWIG_FOUND)
|
||||
find_package(PythonLibs REQUIRED)
|
||||
if(PYTHONLIBS_FOUND)
|
||||
set(HAVE_SWIG 1)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# =====================================
|
||||
# Use external libraries if requested
|
||||
# =====================================
|
||||
@@ -424,4 +434,10 @@ else()
|
||||
message(STATUS "DISABLED linuxspi")
|
||||
endif()
|
||||
|
||||
if(HAVE_SWIG)
|
||||
message(STATUS "DO HAVE swig")
|
||||
else()
|
||||
message(STATUS "DON'T HAVE swig")
|
||||
endif()
|
||||
|
||||
message(STATUS "----------------------")
|
||||
|
||||
Reference in New Issue
Block a user