First tiny little steps towards a SWIG "hello world"

Config file handling and basic list handling is there.
This commit is contained in:
Joerg Wunsch
2024-03-03 21:37:08 +01:00
parent 5c61b9e770
commit 4f455c6043
4 changed files with 228 additions and 1 deletions

View File

@@ -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 "----------------------")