X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fceph-detect-init%2FCMakeLists.txt;fp=src%2Fceph%2Fsrc%2Fceph-detect-init%2FCMakeLists.txt;h=066be4150cda5ed43a5a9914dccc4466520f2636;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/ceph-detect-init/CMakeLists.txt b/src/ceph/src/ceph-detect-init/CMakeLists.txt new file mode 100644 index 0000000..066be41 --- /dev/null +++ b/src/ceph/src/ceph-detect-init/CMakeLists.txt @@ -0,0 +1,12 @@ +set(CEPH_DETECT_INIT_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv) + +add_custom_target(ceph-detect-init + COMMAND + ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh ${CEPH_DETECT_INIT_VIRTUALENV} && + ${CEPH_DETECT_INIT_VIRTUALENV}/bin/pip install --no-index --use-wheel --find-links=file:${CMAKE_SOURCE_DIR}/src/ceph-detect-init/wheelhouse -e . + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-detect-init + COMMENT "ceph-detect-init is being created") +add_dependencies(tests ceph-detect-init) + +include(Distutils) +distutils_install_module(ceph_detect_init)