Commit 60837933 authored by Pascal Verdier's avatar Pascal Verdier Committed by Reynald Bourtembourg
Browse files

CMakeLists file added. (#1)

* CMakeLists file added.
parent 5d478ec0
Loading
Loading
Loading
Loading
+78 −0
Original line number Diff line number Diff line
#=============================================================================
#
# file :        CMakeLists.txt
#
# description : File to generate a TANGO device server using cmake.
#
# project :     TangoAccessControl
#
# $Author:  $
#
# $Revision:  $
# $Date:  $
#
#=============================================================================
#                This file is generated by POGO
#        (Program Obviously used to Generate tango Object)
#=============================================================================
#
#

cmake_minimum_required (VERSION 2.8)
set(CMAKE_SKIP_RPATH true)

# MAKE_ENV is the path to find common environment to buil project
#
set(MAKE_ENV ${TANGO_HOME})
#
# Project definitions
#
project(TangoAccessControl)

#
# optional compiler flags
#
set(CXXFLAGS_USER -g)


#
# Get global information
#
include(${MAKE_ENV}/cmake_tango.opt)

#
# Files for TangoAccessControl TANGO class
#
set(TANGOACCESSCONTROL TangoAccessControl)
set(TANGOACCESSCONTROL_INCLUDE ${CMAKE_SOURCE_DIR})
set(TANGOACCESSCONTROL_SRC ${TANGOACCESSCONTROL}.cpp ${TANGOACCESSCONTROL}Class.cpp ${TANGOACCESSCONTROL}StateMachine.cpp DbUtils.cpp)
#
# Files for AccessControl TANGO class
#
set(ACCESSCONTROL_PATH ../AbstractClasses)
set(ACCESSCONTROL AccessControl)
set(ACCESSCONTROL_INCLUDE ../AbstractClasses)
set(ACCESSCONTROL_SRC ${ACCESSCONTROL_PATH}/${ACCESSCONTROL}.cpp ${ACCESSCONTROL_PATH}/${ACCESSCONTROL}Class.cpp ${ACCESSCONTROL_PATH}/${ACCESSCONTROL}StateMachine.cpp)


#
# User additional include, link folders/libraries and source files
#
set(USER_INCL_DIR /usr/include/mysql)
set(USER_LIB_DIR /usr/lib/x86_64-linux-gnu)
set(USER_LIBS mysqlclient_r)
set(USER_SRC_FILES )

#
# Set gloabal info and include directories
#
set(ALL_CLASS_INCLUDE  ${TANGOACCESSCONTROL_INCLUDE} ${ACCESSCONTROL_INCLUDE}  ${USER_INCL_DIR})
set(SERVER_SRC ${TANGOACCESSCONTROL_SRC} ${ACCESSCONTROL_SRC}  ${USER_SRC_FILES} ClassFactory.cpp main.cpp)
include_directories(${ALL_CLASS_INCLUDE}  ${USER_INCL_DIR} ${TANGO_INCLUDES})

#
# Device Server generation
#
set(SERVER_NAME TangoAccessControl)
include(${MAKE_ENV}/cmake_common_target.opt)
+4 −4
Original line number Diff line number Diff line
<?xml version="1.0" encoding="ASCII"?>
<pogoDsl:PogoSystem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pogoDsl="http://www.esrf.fr/tango/pogo/PogoDsl">
  <classes name="TangoAccessControl" pogoRevision="9.1">
    <description description="This class is a conceate class inherited from AccessControl abstract class.&lt;Br>&#xA;&lt;Br>&#xA;This class defines how to manage the TANGO access control.&lt;Br>&#xA;It implements commands for tool to defines access for users, devices and IP addresses.&lt;Br>&#xA;It implements also commands used by client API to check access for specified user, device and address.&lt;Br>&#xA;And it implements register and unregister it as TANGO service." title="Tango Access Control Management" sourcePath="/mntdirect/_segfs/tango/cppserver/admin/TangoAccessControl" language="Cpp" filestogenerate="XMI   file,VC12 Project,Protected Regions" hasMandatoryProperty="false" hasConcreteProperty="false" hasAbstractCommand="false" hasAbstractAttribute="false">
      <inheritances classname="AccessControl" sourcePath="/segfs/tango/templates/AbstractClasses/AccessControl"/>
  <classes name="TangoAccessControl" pogoRevision="9.4">
    <description description="This class is a conceate class inherited from AccessControl abstract class.&lt;Br>&#xA;&lt;Br>&#xA;This class defines how to manage the TANGO access control.&lt;Br>&#xA;It implements commands for tool to defines access for users, devices and IP addresses.&lt;Br>&#xA;It implements also commands used by client API to check access for specified user, device and address.&lt;Br>&#xA;And it implements register and unregister it as TANGO service." title="Tango Access Control Management" sourcePath="/mntdirect/_segfs/tango/tmp/pascal/TangoAccessControl/TangoAccessControl" language="Cpp" filestogenerate="XMI   file,CMakeLists,Protected Regions" hasMandatoryProperty="false" hasConcreteProperty="false" hasAbstractCommand="false" hasAbstractAttribute="false">
      <inheritances classname="AccessControl" sourcePath="../AbstractClasses"/>
      <identification contact="at esrf.fr - accelerator-control" author="accelerator-control" emailDomain="esrf.fr" classFamily="System" siteSpecific="" platform="All Platforms" bus="Not Applicable" manufacturer="none" reference=""/>
    </description>
    <commands name="State" description="This command gets the device state (stored in its &lt;i>device_state&lt;/i> data member) and returns it to the caller." execMethod="dev_state" displayLevel="OPERATOR" polledPeriod="0">
@@ -185,6 +185,6 @@
      <status abstract="false" inherited="true" concrete="true"/>
    </states>
    <preferences docHome="./doc_html" makefileHome="$(TANGO_HOME)"/>
    <additionalFiles name="DbUtils" path="/mntdirect/_segfs/tango/cppserver/admin/TangoAccessControl/DbUtils.cpp"/>
    <additionalFiles name="DbUtils" path="DbUtils.cpp"/>
  </classes>
</pogoDsl:PogoSystem>