Changeset 19754 for trunk/FACT++
- Timestamp:
- 10/10/19 19:57:31 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/CMakeLists.txt
r19714 r19754 53 53 # ********************************* 54 54 55 IF (NOT TOOLS_ONLY) 55 #SET(OBSERVATORY "ORM" CACHE STRING "Select the observatory location (ORM, HAWC, SPM, RWTH: see nova.h)") 56 57 IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 56 58 57 59 IF(EXISTS "${CMAKE_SOURCE_DIR}/famous") … … 65 67 ENDIF() 66 68 67 ENDIF(NOT TOOLS_ONLY )69 ENDIF(NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 68 70 69 71 … … 92 94 ENDIF() 93 95 94 IF (NOT TOOLS_ONLY )96 IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 95 97 96 98 FIND_PROGRAM(JSDOC_EXECUTABLE jsdoc) … … 109 111 ENDIF() 110 112 111 ENDIF (NOT TOOLS_ONLY )113 ENDIF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 112 114 113 115 #IF(NOT SOME_COND) … … 128 130 # FIXME : Require panel 129 131 132 IF(NOT TOOLS_ONLY OR VIEWER_ONLY) 133 FIND_PACKAGE(OpenGL REQUIRED) # OpenGL::GL OpenGL::GLU / OPENGL_FOUND OPENGL_GLU_FOUND 134 ENDIF(NOT TOOLS_ONLY OR VIEWER_ONLY) 135 130 136 IF(NOT TOOLS_ONLY) 131 132 FIND_PACKAGE(OpenGL REQUIRED) # OpenGL::GL OpenGL::GLU / OPENGL_FOUND OPENGL_GLU_FOUND133 137 134 138 # FIND_PACKAGE(DBus) => skaypeclient … … 201 205 202 206 # =============== QT4 ============== 203 IF(NOT TOOLS_ONLY )207 IF(NOT TOOLS_ONLY OR VIEWER_ONLY) 204 208 205 209 FIND_PACKAGE(Qt4 REQUIRED QtCore QtGui QtOpenGL QtSql QtXml) 206 210 FIND_PACKAGE(Qwt REQUIRED) 207 211 208 ENDIF(NOT TOOLS_ONLY )212 ENDIF(NOT TOOLS_ONLY OR VIEWER_ONLY) 209 213 210 214 # ============== ROOT ================ … … 228 232 229 233 #---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS) 230 IF (DEFINED TOOLS_ONLY) 234 IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 235 FIND_PACKAGE(ROOT REQUIRED COMPONENTS GQt) 236 ELSE() 231 237 FIND_PACKAGE(ROOT REQUIRED COMPONENTS) 232 ELSE()233 FIND_PACKAGE(ROOT REQUIRED COMPONENTS GQt)234 238 ENDIF() 235 239 … … 341 345 # ********************** Libraries *********************** 342 346 # ******************************************************** 343 IF (NOT TOOLS_ONLY )347 IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 344 348 345 349 # =================== libPointing.so ====================== … … 470 474 OpenSSL::SSL) 471 475 472 ENDIF (NOT TOOLS_ONLY )476 ENDIF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 473 477 474 478 # ================= libConfiguration.so ================== … … 497 501 # ********************** Manuals ************************* 498 502 # ******************************************************** 503 504 IF (NOT VIEWER_ONLY) 499 505 500 506 FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/man1) … … 601 607 MANPAGE(getevent "") 602 608 603 IF (NOT TOOLS_ONLY) 609 ENDIF(NOT VIEWER_ONLY) 610 611 IF (NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 604 612 605 613 ADD_EXECUTABLE(makeplots src/makeplots.cc) … … 790 798 #MANPAGE(triggerschedule "") 791 799 800 ENDIF(NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 792 801 793 802 # ******************************************************** 794 803 # ****************** GUI Applications ******************** 795 804 # ******************************************************** 805 806 IF (NOT TOOLS_ONLY OR VIEWER_ONLY) 796 807 797 808 INCLUDE_DIRECTORIES(${QWT_INCLUDE_DIR}/qwt-qt4 gui gui/RawEventsViewer) … … 821 832 qwt-qt4 ZLIB::ZLIB) 822 833 834 ENDIF(NOT TOOLS_ONLY OR VIEWER_ONLY) 835 823 836 # -------------------------------------------------------- 837 838 IF(NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 824 839 825 840 QT4_ADD_RESOURCES(FACT_QT_RESOURCES gui/design.qrc) … … 866 881 #test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la 867 882 868 ENDIF(NOT TOOLS_ONLY )883 ENDIF(NOT TOOLS_ONLY AND NOT VIEWER_ONLY) 869 884 870 885 … … 973 988 # ====== Installation targets ===== 974 989 990 IF (NOT VIEWER_ONLY) 975 991 INSTALL(TARGETS fits2sql DESTINATION "${CMAKE_INSTALL_BINDIR}") 976 992 INSTALL(TARGETS root2sql DESTINATION "${CMAKE_INSTALL_BINDIR}") … … 980 996 INSTALL(TARGETS showlog DESTINATION "${CMAKE_INSTALL_BINDIR}") 981 997 INSTALL(TARGETS rootifysql DESTINATION "${CMAKE_INSTALL_BINDIR}") 998 ENDIF(NOT VIEWER_ONLY) 999 982 1000 INSTALL(TARGETS Configuration DESTINATION "${CMAKE_INSTALL_LIBDIR}") 983 1001 INSTALL(TARGETS Time DESTINATION "${CMAKE_INSTALL_LIBDIR}") 984 1002 INSTALL(TARGETS Tools DESTINATION "${CMAKE_INSTALL_LIBDIR}") 1003 985 1004 986 1005 #INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/html DESTINATION "${PKG_SHARE}" FILES_MATCHING PATTERN "*.html")
Note:
See TracChangeset
for help on using the changeset viewer.