#!/usr/bin/python
# coding: utf8

import os
import subprocess
from '{% if cookiecutter.namespace %}{{ cookiecutter.namespace }}.{{ cookiecutter.project_slug }}{% else %}{{ cookiecutter.project_slug }}{% endif %}'.commands.base import BaseCommand
from '{% if cookiecutter.namespace %}{{ cookiecutter.namespace }}.{{ cookiecutter.project_slug }}{% else %}{{ cookiecutter.project_slug }}{% endif %}' import PROJECT_DIR


class Configure(BaseCommand):
    def execute(self):
        os.chdir(os.path.join(PROJECT_DIR, 'build'))
        subprocess.run(['cmake', PROJECT_DIR])
