Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / ceph-detect-init / CMakeLists.txt
1 set(CEPH_DETECT_INIT_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv)
2
3 add_custom_target(ceph-detect-init
4   COMMAND
5   ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh ${CEPH_DETECT_INIT_VIRTUALENV} &&
6   ${CEPH_DETECT_INIT_VIRTUALENV}/bin/pip install --no-index --use-wheel --find-links=file:${CMAKE_SOURCE_DIR}/src/ceph-detect-init/wheelhouse -e .
7   WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-detect-init
8   COMMENT "ceph-detect-init is being created")
9 add_dependencies(tests ceph-detect-init)
10
11 include(Distutils)
12 distutils_install_module(ceph_detect_init)