cmake: add -DFTDID2xx and use FindFtd2xx.cmake
[contrib/mraa.git] / CMakeLists.txt
index 3ad76d3..eb4ce97 100644 (file)
@@ -18,7 +18,7 @@ include (GetGitRevisionDescription)
 git_describe (VERSION "--tags")
 if ("x_${VERSION}" STREQUAL "x_GIT-NOTFOUND" OR "x_${VERSION}" STREQUAL "x_HEAD-HASH-NOTFOUND")
   message (WARNING " - Install git to compile a production libmraa!")
-  set (VERSION "v0.7.4-dirty")
+  set (VERSION "v0.7.5-dirty")
 endif ()
 
 message (INFO " - libmraa Version ${VERSION}")
@@ -54,6 +54,8 @@ option (BUILDSWIG "Build swig modules." ON)
 option (BUILDSWIGPYTHON "Build swig python modules." ON)
 option (BUILDSWIGNODE "Build swig node modules." ON)
 option (BUILDSWIGJAVA "Build Java API." OFF)
+option (USBPLAT "Detection USB platform." ON)
+option (FTDID2XX "Build with FTDI D2xx subplatform support." OFF)
 option (IPK "Generate IPK using CPack" OFF)
 option (RPM "Generate RPM using CPack" OFF)
 option (BUILDPYTHON3 "Use python3 for building/installing" OFF)