CMakeLists.txt 1.77 KB
Newer Older
Jean-Luc Pons's avatar
Jean-Luc Pons committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
#=============================================================================
#
# file :        CMakeLists.txt
#
# description : File to generate a TANGO device server using cmake.
#
# project :     LiberaSparkSRBPM
#
#=============================================================================
#                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 build project
#
set(MAKE_ENV /segfs/tango/cppserver/env)
#
# Project definitions
#
project(LiberaSparkSRBPM)

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


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

#
# Files for LiberaSparkSRBPM TANGO class
#
set(LIBERASPARKSRBPM LiberaSparkSRBPM)
set(LIBERASPARKSRBPM_INCLUDE ${CMAKE_SOURCE_DIR})
set(LIBERASPARKSRBPM_SRC ${LIBERASPARKSRBPM}.cpp ${LIBERASPARKSRBPM}Class.cpp ${LIBERASPARKSRBPM}StateMachine.cpp)


#
# User additional include, link folders/libraries and source files
#
set(USER_INCL_DIR /segfs/linux/libera/LiberaPlatformC/libera3.0/arm/include /segfs/linux/libera/LiberaPlatformC/boost_1_60_0/arm/include)
set(USER_LIB_DIR )
set(USER_LIBS )
set(USER_SRC_FILES PosCalculation.cpp SAThread.cpp DDThread.cpp ADCThread.cpp IQThread.cpp)

#
# Set global info and include directories
#
set(ALL_CLASS_INCLUDE  ${LIBERASPARKSRBPM_INCLUDE}  ${USER_INCL_DIR})
set(SERVER_SRC ${LIBERASPARKSRBPM_SRC}  ${USER_SRC_FILES} ClassFactory.cpp main.cpp)
include_directories(${ALL_CLASS_INCLUDE}  ${USER_INCL_DIR} ${TANGO_INCLUDES})

#
# Device Server generation
#
set(SERVER_NAME LiberaSparkSRBPM)
include(${MAKE_ENV}/cmake_common_target.opt)