summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindCython.cmake
diff options
context:
space:
mode:
authorGravatar Bryan Forbes2011-09-26 17:14:39 +0200
committerGravatar Nikias Bassen2011-09-26 17:14:39 +0200
commit2ca52d65bb113e8639e732f67fec3c3223c0a444 (patch)
treeb937e0c7a6a93eca914c0571bd71c85a3f2408b4 /cmake/modules/FindCython.cmake
parent36ad4384303e94b19cdf7a5ff43182efebe1b398 (diff)
downloadlibplist-2ca52d65bb113e8639e732f67fec3c3223c0a444.tar.gz
libplist-2ca52d65bb113e8639e732f67fec3c3223c0a444.tar.bz2
Added cython bindings.
Diffstat (limited to 'cmake/modules/FindCython.cmake')
-rw-r--r--cmake/modules/FindCython.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/modules/FindCython.cmake b/cmake/modules/FindCython.cmake
new file mode 100644
index 0000000..89005b7
--- /dev/null
+++ b/cmake/modules/FindCython.cmake
@@ -0,0 +1,10 @@
+FIND_PROGRAM(CYTHON_EXECUTABLE cython)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Cython DEFAULT_MSG CYTHON_EXECUTABLE)
+
+MARK_AS_ADVANCED(CYTHON_EXECUTABLE)
+
+IF(CYTHON_FOUND)
+ SET(CYTHON_USE_FILE ${CMAKE_SOURCE_DIR}/cmake/modules/UseCython.cmake)
+ENDIF(CYTHON_FOUND)