Changeset 19754


Ignore:
Timestamp:
Oct 10, 2019, 7:57:31 PM (8 days ago)
Author:
tbretz
Message:
Implemented VIEWER_ONLY option.
File:
1 edited

Legend:

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

    r19714 r19754  
    5353# *********************************
    5454
    55 IF (NOT TOOLS_ONLY)
     55#SET(OBSERVATORY "ORM" CACHE STRING "Select the observatory location (ORM, HAWC, SPM, RWTH: see nova.h)")
     56
     57IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    5658
    5759IF(EXISTS "${CMAKE_SOURCE_DIR}/famous")
     
    6567ENDIF()
    6668
    67 ENDIF(NOT TOOLS_ONLY)
     69ENDIF(NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    6870
    6971
     
    9294ENDIF()
    9395
    94 IF (NOT TOOLS_ONLY)
     96IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    9597
    9698FIND_PROGRAM(JSDOC_EXECUTABLE    jsdoc)
     
    109111ENDIF()
    110112
    111 ENDIF (NOT TOOLS_ONLY)
     113ENDIF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    112114
    113115#IF(NOT SOME_COND)
     
    128130# FIXME : Require  panel
    129131
     132IF(NOT TOOLS_ONLY OR VIEWER_ONLY)
     133FIND_PACKAGE(OpenGL   REQUIRED)  # OpenGL::GL OpenGL::GLU / OPENGL_FOUND OPENGL_GLU_FOUND
     134ENDIF(NOT TOOLS_ONLY OR VIEWER_ONLY)
     135
    130136IF(NOT TOOLS_ONLY)
    131 
    132 FIND_PACKAGE(OpenGL   REQUIRED)  # OpenGL::GL OpenGL::GLU / OPENGL_FOUND OPENGL_GLU_FOUND
    133137
    134138# FIND_PACKAGE(DBus)    => skaypeclient
     
    201205
    202206# =============== QT4 ==============
    203 IF(NOT TOOLS_ONLY)
     207IF(NOT TOOLS_ONLY OR VIEWER_ONLY)
    204208
    205209FIND_PACKAGE(Qt4 REQUIRED QtCore QtGui QtOpenGL QtSql QtXml)
    206210FIND_PACKAGE(Qwt REQUIRED)
    207211
    208 ENDIF(NOT TOOLS_ONLY)
     212ENDIF(NOT TOOLS_ONLY OR VIEWER_ONLY)
    209213
    210214# ============== ROOT ================
     
    228232
    229233#---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)
    230 IF (DEFINED TOOLS_ONLY)
     234IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
     235   FIND_PACKAGE(ROOT REQUIRED COMPONENTS GQt)
     236ELSE()
    231237   FIND_PACKAGE(ROOT REQUIRED COMPONENTS)
    232 ELSE()
    233    FIND_PACKAGE(ROOT REQUIRED COMPONENTS GQt)
    234238ENDIF()
    235239
     
    341345# ********************** Libraries ***********************
    342346# ********************************************************
    343 IF (NOT TOOLS_ONLY)
     347IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    344348
    345349# =================== libPointing.so ======================
     
    470474        OpenSSL::SSL)
    471475
    472 ENDIF (NOT TOOLS_ONLY)
     476ENDIF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    473477
    474478# ================= libConfiguration.so ==================
     
    497501# ********************** Manuals *************************
    498502# ********************************************************
     503
     504IF (NOT VIEWER_ONLY)
    499505
    500506FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/man1)
     
    601607MANPAGE(getevent "")
    602608
    603 IF (NOT TOOLS_ONLY)
     609ENDIF(NOT VIEWER_ONLY)
     610
     611IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    604612
    605613ADD_EXECUTABLE(makeplots src/makeplots.cc)
     
    790798#MANPAGE(triggerschedule "")
    791799
     800ENDIF(NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    792801
    793802# ********************************************************
    794803# ****************** GUI Applications ********************
    795804# ********************************************************
     805
     806IF (NOT TOOLS_ONLY OR VIEWER_ONLY)
    796807
    797808INCLUDE_DIRECTORIES(${QWT_INCLUDE_DIR}/qwt-qt4 gui gui/RawEventsViewer)
     
    821832        qwt-qt4 ZLIB::ZLIB)
    822833
     834ENDIF(NOT TOOLS_ONLY OR VIEWER_ONLY)
     835
    823836# --------------------------------------------------------
     837
     838IF(NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    824839
    825840QT4_ADD_RESOURCES(FACT_QT_RESOURCES gui/design.qrc)
     
    866881#test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
    867882
    868 ENDIF(NOT TOOLS_ONLY)
     883ENDIF(NOT TOOLS_ONLY AND NOT VIEWER_ONLY)
    869884
    870885
     
    973988# ====== Installation targets =====
    974989
     990IF (NOT VIEWER_ONLY)
    975991INSTALL(TARGETS  fits2sql       DESTINATION "${CMAKE_INSTALL_BINDIR}")
    976992INSTALL(TARGETS  root2sql       DESTINATION "${CMAKE_INSTALL_BINDIR}")
     
    980996INSTALL(TARGETS  showlog        DESTINATION "${CMAKE_INSTALL_BINDIR}")
    981997INSTALL(TARGETS  rootifysql     DESTINATION "${CMAKE_INSTALL_BINDIR}")
     998ENDIF(NOT VIEWER_ONLY)
     999
    9821000INSTALL(TARGETS  Configuration  DESTINATION "${CMAKE_INSTALL_LIBDIR}")
    9831001INSTALL(TARGETS  Time           DESTINATION "${CMAKE_INSTALL_LIBDIR}")
    9841002INSTALL(TARGETS  Tools          DESTINATION "${CMAKE_INSTALL_LIBDIR}")
     1003
    9851004
    9861005#INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/html DESTINATION  "${PKG_SHARE}" FILES_MATCHING PATTERN "*.html")
Note: See TracChangeset for help on using the changeset viewer.