summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-02-20 01:35:47 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2011-02-20 01:35:47 +0100
commit48344a71caa1689e22ee33abf3b59d8903d35cad (patch)
tree1f404d6cab4b277d9f98ac1f4bb301dfccfadf17 /CMakeLists.txt
parentbeaeb2c95856bb89f9aa4ac7b256d1526f60cde9 (diff)
downloadk8055-48344a71caa1689e22ee33abf3b59d8903d35cad.zip
k8055-48344a71caa1689e22ee33abf3b59d8903d35cad.tar.gz
add pyk8055, without install rules
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("")