diff --git a/CMakeLists.txt b/CMakeLists.txt
index a821922893e1b28dff32b3a7e695731b0f724212..25cad63d9ced44fca1d6010db4e6ff48612cef51 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -495,6 +495,8 @@ if(ENABLE_ONELAB)
     include_directories(contrib/onelab)
     set_config_option(HAVE_ONELAB_METAMODEL "OneLabMetamodel")
   endif(ENABLE_ONELAB_METAMODEL)
+  file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/contrib/onelab/python/onelab.py
+            DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
 endif(ENABLE_ONELAB)
 
 if(ENABLE_BUILD_IOS)