Changeset 18993


Ignore:
Timestamp:
04/07/18 17:30:26 (7 years ago)
Author:
tbretz
Message:
Implemented a program to read the rain sensor data from MAGIC.
Location:
trunk/FACT++
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/CMakeLists.txt

    r18992 r18993  
    7171# *********************************
    7272
     73# =========== pkg-config ============
     74FIND_PACKAGE(PkgConfig)
     75FIND_PACKAGE(PackageHandleStandardArgs)
     76
     77
    7378# ========== executables ==========
    7479FIND_PROGRAM(HELP2MAN_EXECUTABLE help2man)
     
    7681FIND_PROGRAM(MAILX_EXECUTABLE    mailx)
    7782FIND_PROGRAM(CURL_EXECUTABLE     curl)
    78 FIND_PROGRAM(PS2DPF_EXECUTABLE   ps2pdf)
    7983FIND_PROGRAM(GROFF_EXECUTABLE    groff)
    8084
    81 # =========== pkg-config ============
    82 FIND_PACKAGE(PkgConfig)
    83 FIND_PACKAGE(PackageHandleStandardArgs)
    84 
     85FIND_PACKAGE_HANDLE_STANDARD_ARGS(groff    DEFAULT_MSG GROFF_EXECUTABLE)
     86FIND_PACKAGE_HANDLE_STANDARD_ARGS(curl     DEFAULT_MSG CURL_EXECUTABLE)
     87FIND_PACKAGE_HANDLE_STANDARD_ARGS(mailx    DEFAULT_MSG MAILX_EXECUTABLE)
     88FIND_PACKAGE_HANDLE_STANDARD_ARGS(jsdoc    DEFAULT_MSG JSDOC_EXECUTABLE)
     89FIND_PACKAGE_HANDLE_STANDARD_ARGS(help2man DEFAULT_MSG HELP2MAN_EXECUTABLE)
     90
     91#IF(NOT SOME_COND)
     92#  MESSAGE(FATAL_ERROR "At least one required executable was not found")
     93#ENDIF()
    8594
    8695# =========== libraries =============
     
    8998
    9099# FIXME: Need to check which package finders accept REQUIERED. For all others implement checks
     100
     101FIND_PACKAGE(Threads  REQUIRED)  # Threads::Threads
     102FIND_PACKAGE(ZLIB     REQUIRED)  # ZLIB::ZLIB
     103FIND_PACKAGE(OpenGL   REQUIRED)  # OpenGL::GL OpenGL::GLU / OPENGL_FOUND OPENGL_GLU_FOUND
    91104
    92105SET(CURSES_NEED_NCURSES ON)
     
    94107# FIXME : Require  panel
    95108
    96 FIND_PACKAGE(DBus)
    97 FIND_PACKAGE(Motif)              # MOTIF_FOUND
     109# FIND_PACKAGE(DBus)    => skaypeclient
     110# FIND_PACKAGE(Motif)   => did   # MOTIF_FOUND
     111FIND_PACKAGE(Readline REQUIRED)
     112FIND_PACKAGE(Panel    REQUIRED)
    98113FIND_PACKAGE(Nova     REQUIRED)
    99 FIND_PACKAGE(Readline REQUIRED)
    100 FIND_PACKAGE(ZLIB     REQUIRED)  # ZLIB::ZLIB
    101 FIND_PACKAGE(Threads  REQUIRED)  # Threads::Threads
    102 FIND_PACKAGE(OpenGL   REQUIRED)  # OpenGL::GL OpenGL::GLU / OPENGL_FOUND OPENGL_GLU_FOUND
    103 
    104 INCLUDE_DIRECTORIES("/usr/include/mysql")
    105 
     114FIND_PACKAGE(MySQL    REQUIRED)
     115FIND_PACKAGE(MySQL++  REQUIRED)
     116FIND_PACKAGE(V8       REQUIRED)
     117FIND_PACKAGE(Cfitsio  REQUIRED)
     118FIND_PACKAGE(CCfits   REQUIRED)
     119
     120#INCLUDE_DIRECTORIES("/usr/include/mysql")
     121# dbus-1 dbus-glib-1
     122# doxygen
     123
     124MESSAGE("")
     125MESSAGE(${V8_LIBRARY})
     126MESSAGE(${MYSQLPP_LIBRARY})
     127MESSAGE(${PANEL_LIBRARY})
    106128MESSAGE(${CURSES_LIBRARIES})
     129MESSAGE(${CCFITS_LIBRARY})
     130MESSAGE(${CFITSIO_LIBRARY})
     131MESSAGE(${MYSQL_LIBRARY})
     132MESSAGE(${NOVA_LIBRARY})
     133MESSAGE(${READLINE_LIBRARY})
     134MESSAGE("")
     135
     136INCLUDE_DIRECTORIES(${MYSQL_INCLUDE_DIR})
    107137
    108138
     
    118148
    119149# =============== QT4 ==============
    120 #SET(CMAKE_AUTOMOC ON)
    121 #SET(CMAKE_AUTORCC ON)
    122150SET(CMAKE_INCLUDE_CURRENT_DIR ON)
    123 
    124 #    set(CMAKE_AUTOMOC ON)
    125 #    set(CMAKE_INCLUDE_CURRENT_DIR ON)
    126 #    find_package(Qt4 4.4.3 REQUIRED QtGui QtXml)
    127 #    add_executable(myexe main.cpp)
    128 #    target_link_libraries(myexe Qt4::QtGui Qt4::QtXml)
    129 
    130 # QtCore QtSql QtOpenGL QtXml
    131151FIND_PACKAGE(Qt4 REQUIRED QtCore QtGui QtOpenGL QtSql QtXml)
    132 #INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
    133 #INCLUDE_DIRECTORIES(${QT_QTGUI_INCLUDE_DIR})
    134 #INCLUDE_DIRECTORIES(${QT_QTSQL_INCLUDE_DIR})
    135 #INCLUDE_DIRECTORIES(${QT_QTXML_INCLUDE_DIR})
    136 #INCLUDE_DIRECTORIES(${QT_QTCORE_INCLUDE_DIR})
    137 #INCLUDE_DIRECTORIES(${QT_QTOPENGL_INCLUDE_DIR})
    138 
    139 #MESSAGE(${QT_INCLUDE_DIR})
    140 #MESSAGE(${QT_QTGUI_INCLUDE_DIR})
    141 #MESSAGE(${QT_QTSQL_INCLUDE_DIR})
    142 #MESSAGE(${QT_QTXML_INCLUDE_DIR})
    143 #MESSAGE(${QT_QTCORE_INCLUDE_DIR})
    144 #MESSAGE(${QT_QTOPENGL_INCLUDE_DIR})
    145 
    146 # dbus-1 dbus-glib-1
    147 # doxygen
    148 # libm
    149 # readline
    150 # ncurses libpanel panel.h
    151 # motif
    152 # GL
    153 # GLU
    154 # cfitsio
    155 # ccfits
    156 # mysql devel
    157 # mysqlpp devel
    158 # boost system, asio, date_time, filesystem, program_options, regex, thread
    159 # v8
    160 # Qt4/5 Core QGL QWT
    161152
    162153
     
    426417# ********************************************************
    427418
    428 SET(HELP++LIBS Tools Configuration Time mysqlpp mysqlclient)
     419SET(HELP++LIBS Tools Configuration Time mysqlpp ${MYSQL_LIBRARIES})
    429420
    430421# --------------------------------------------------------
     
    607598TARGET_LINK_LIBRARIES(pwrctrl ${FACT++LIBS} Qt4::QtXml)
    608599MANPAGE(pwrctrl "")
     600
     601ADD_EXECUTABLE(rainsensor src/rainsensor.cc)
     602TARGET_LINK_LIBRARIES(rainsensor ${FACT++LIBS})
     603MANPAGE(rainsensor "")
    609604
    610605ADD_EXECUTABLE(ratecontrol src/ratecontrol.cc)
  • trunk/FACT++/Makefile.am

    r18985 r18993  
    4242        magicweather magiclidar \
    4343        smartfact evtserver getevent \
    44         temperature biastemp \
     44        temperature rainsensor biastemp \
    4545        timecheck \
    4646        showlog \
     
    127127        pfminictrl.man \
    128128        pwrctrl.man \
     129        rainsensor.man \
    129130        ratecontrol.man \
    130131        ratescan.man \
     
    414415        libConfiguration.la
    415416
     417rainsensor_SOURCES = src/rainsensor.cc src/LocalControl.h
     418rainsensor_LDADD   = libDim++.la libDim.la libDimExtension.la \
     419        libStateMachine.la libTools.la libTime.la \
     420        libConfiguration.la
     421
    416422temperature_SOURCES = src/temperature.cc src/LocalControl.h
    417423temperature_LDADD   = libDim++.la libDim.la libDimExtension.la \
Note: See TracChangeset for help on using the changeset viewer.