Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CMakeLists.txt 1.38 KiB

set(USE_PYTHON_COMPILATION Off)
lofar_find_package(PythonInterp 3.4 REQUIRED)
#lofar_find_package(PostgreSQL 9.4)

include(PythonInstall)
include(FindPythonModule)

find_python_module(django REQUIRED)
find_python_module(rest_framework REQUIRED)     # pip install djangorestframework
find_python_module(ldap REQUIRED)
find_python_module(markdown REQUIRED)
find_python_module(django_filters REQUIRED)     # pip install django-filter
find_python_module(django_auth_ldap REQUIRED)   # sudo apt-get install python3-django-python3-ldap python3-django-auth-ldap
find_python_module(coreapi REQUIRED)            # sudo apt-get install python3-coreapi
find_python_module(django_jsonforms REQUIRED)   # pip3 install django-jsonforms
find_python_module(django_json_widget REQUIRED) # pip3 install django-json-widget
find_python_module(jsoneditor REQUIRED)         # pip3 install django-jsoneditor
find_python_module(jsonschema REQUIRED)         # pip3 install jsonschema

# modules for swagger API export
find_python_module(drf_yasg REQUIRED)           # pip install drf-yasg
find_python_module(flex REQUIRED)               # pip install flex
find_python_module(swagger_spec_validator REQUIRED) # pip install swagger-spec-validator

set(_py_files
    manage.py
    remakemigrations.py
    )

python_install(${_py_files}
    DESTINATION lofar/sas/tmss)

lofar_add_bin_scripts(migrate_momdb_to_tmss.py)

add_subdirectory(tmss)