Skip to content
Snippets Groups Projects
Commit 1bf2100b authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

LSMR-1: fixed CMakeLists.txt to adhere to lofar standards

parent 45042b0f
No related branches found
No related tags found
2 merge requests!89Monitoring maintenance Epic branch merge,!1Resolve OSB-13 "Monitoringmaintenance "
......@@ -2,15 +2,19 @@
lofar_package(DBInterface 1.0)
# Install files matching regex pattern in current directory and below
install(DIRECTORY django_postgresql
DESTINATION ${CMAKE_INSTALL_PREFIX}/webserver
USE_SOURCE_PERMISSIONS
PATTERN ".svn" EXCLUDE)
install(DIRECTORY monitoringdb
DESTINATION ${CMAKE_INSTALL_PREFIX}/webserver
USE_SOURCE_PERMISSIONS
PATTERN ".svn" EXCLUDE)
install(FILES manage.py
DESTINATION ${CMAKE_INSTALL_PREFIX}/webserver)
lofar_find_package(Python 2.6 REQUIRED)
include(PythonInstall)
include(FindPythonModule)
find_python_module(django REQUIRED)
find_python_module(psycopg2 REQUIRED)
find_python_module(rest_framework REQUIRED) #sudo pip install djangorestframework
find_python_module(rest_polymorphic REQUIRED) #sudo pip install django-polymorphic
find_python_module(polymorphic REQUIRED) #sudo pip install django-rest-polymorphic
find_python_module(requests REQUIRED)
find_python_module(pandas REQUIRED)
FILE(GLOB_RECURSE PY_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ./*.py)
python_install(${PY_FILES} DESTINATION lofar/maintenance)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment