summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d2e3eb5..df24e7e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,14 @@ IF(wxWidgets_FOUND)
ADD_SUBDIRECTORY(k8055gui)
ENDIF()
#
+FIND_PACKAGE(SWIG)
+FIND_PACKAGE(PythonLibs)
+FIND_PACKAGE(PythonInterp)
+IF(SWIG_FOUND AND PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND)
+ SET(BUILD_PYTHON TRUE)
+ ADD_SUBDIRECTORY(pyk8055)
+ENDIF()
+#
# BUILD SUMMARY
#
COLOR_MESSAGE("\n${_escape}[1;36mBuild Summary${_escape}[0m\n--------------------")
@@ -68,4 +76,24 @@ IF(wxWidgets_FOUND)
ELSE()
COLOR_MESSAGE("* ${_escape}[1;35mwxwidget${_escape}[0m : ${_escape}[1;31mmissing${_escape}[0m unable to build k8055gui")
ENDIF()
+IF(SWIG_FOUND)
+ COLOR_MESSAGE("* ${_escape}[1;35mSWIG${_escape}[0m : ${_escape}[1;32mfound${_escape}[0m")
+ELSE()
+ COLOR_MESSAGE("* ${_escape}[1;35mSWIG${_escape}[0m : ${_escape}[1;31mmissing${_escape}[0m")
+ENDIF()
+IF(PYTHONLIBS_FOUND)
+ COLOR_MESSAGE("* ${_escape}[1;35mpython libs${_escape}[0m : ${_escape}[1;32mfound${_escape}[0m")
+ELSE()
+ COLOR_MESSAGE("* ${_escape}[1;35mpython libs${_escape}[0m : ${_escape}[1;31mmissing${_escape}[0m")
+ENDIF()
+IF(PYTHONINTERP_FOUND)
+ COLOR_MESSAGE("* ${_escape}[1;35mpython interpreter${_escape}[0m : ${_escape}[1;32mfound${_escape}[0m")
+ELSE()
+ COLOR_MESSAGE("* ${_escape}[1;35mpython interpreter${_escape}[0m : ${_escape}[1;31mmissing${_escape}[0m")
+ENDIF()
+IF(BUILD_PYTHON)
+ COLOR_MESSAGE("* build pyk8055")
+ELSE()
+ COLOR_MESSAGE("* unable to build pyk8055")
+ENDIF()
MESSAGE("")