source: trunk/FACT++/CMakeLists.txt @ 19265

Last change on this file since 19265 was 19265, checked in by tbretz, 10 months ago
Check for root2html and roff2pdf -- they are in a different package than groff.
File size: 30.7 KB
Line 
1# *********************************
2# ************ cmake **************
3# *********************************
4CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
5CMAKE_POLICY(SET CMP0043 NEW)
6CMAKE_POLICY(SET CMP0048 NEW)
7
8# Enable debug symbols by default
9# must be done before project() statement
10SET(CMAKE_BUILD_TYPE_INIT Release)
11# (you can also set it on the command line: -D CMAKE_BUILD_TYPE=Debug)
12
13# Enable CLANG as default compilers, to change this use
14# cmake -DCMAKE_C_COMPILER=cc -DCMAKE_CXX_COMPILER=c++
15# Note that if compilers are switched on the fly,
16# the cache is deleted
17IF(NOT DEFINED CMAKE_C_COMPILER)
18        FIND_PROGRAM(CMAKE_C_COMPILER   NAMES $ENV{CC}  clang   gcc cc  PATHS ENV PATH NO_DEFAULT_PATH DOC "C Compiler")
19ENDIF()
20IF(NOT DEFINED CMAKE_CXX_COMPILER)
21        FIND_PROGRAM(CMAKE_CXX_COMPILER NAMES $ENV{CXX} clang++ g++ c++ PATHS ENV PATH NO_DEFAULT_PATH DOC "C++ Compiler")
22ENDIF()
23
24
25#SET(CMAKE_VERBOSE_MAKEFILE ON)
26
27
28
29# *********************************
30# ************ Project ************
31# *********************************
32
33STRING(TIMESTAMP VERSION %y.%U.%w.%H UTC)
34
35MESSAGE(STATUS "FACT++ V${VERSION}")
36
37PROJECT(fact++ VERSION ${VERSION})
38
39INCLUDE(GNUInstallDirs)
40
41# ======== For config.h.in =========
42SET(PACKAGE_MAINTAINER "Thomas Bretz")
43SET(PACKAGE_BUGREPORT  "tbretz@physik.rwth-aachen.de")
44SET(PACKAGE_URL        "https://www.fact-project.org")
45
46
47# *********************************
48# ******** FAMOUS / IceACT ********
49# *********************************
50
51IF (NOT TOOLS_ONLY)
52
53IF(EXISTS "${CMAKE_SOURCE_DIR}/famous")
54        MESSAGE(STATUS "Compilation of 'famous' enabled.")
55        SET(FOUND_FAMOUS ON)
56ENDIF()
57
58IF(EXISTS "${CMAKE_SOURCE_DIR}/iceact")
59        MESSAGE(STATUS "Compilation of 'iceact' enabled.")
60        SET(FOUND_ICEACT ON)
61ENDIF()
62
63ENDIF(NOT TOOLS_ONLY)
64
65
66# *********************************
67# ********* Requirements **********
68# *********************************
69
70# Inlclude the main source AND build dir itself
71SET(CMAKE_INCLUDE_CURRENT_DIR ON)
72
73# =========== pkg-config ============
74FIND_PACKAGE(PkgConfig)
75FIND_PACKAGE(PackageHandleStandardArgs)
76
77
78# ========== executables ==========
79FIND_PROGRAM(HELP2MAN_EXECUTABLE help2man)
80FIND_PROGRAM(ROFFHTML_EXECUTABLE roff2html)
81FIND_PROGRAM(ROFFPDF_EXECUTABLE  roff2pdf)
82FIND_PROGRAM(GROFF_EXECUTABLE    groff)
83
84FIND_PACKAGE_HANDLE_STANDARD_ARGS(help2man  DEFAULT_MSG HELP2MAN_EXECUTABLE)
85FIND_PACKAGE_HANDLE_STANDARD_ARGS(roff2html DEFAULT_MSG ROFFHTML_EXECUTABLE)
86FIND_PACKAGE_HANDLE_STANDARD_ARGS(roff2pdf  DEFAULT_MSG ROFFPDF_EXECUTABLE)
87FIND_PACKAGE_HANDLE_STANDARD_ARGS(groff     DEFAULT_MSG GROFF_EXECUTABLE)
88
89IF (NOT TOOLS_ONLY)
90
91FIND_PROGRAM(JSDOC_EXECUTABLE    jsdoc)
92FIND_PROGRAM(MAILX_EXECUTABLE    mailx)
93FIND_PROGRAM(CURL_EXECUTABLE     curl)
94
95FIND_PACKAGE_HANDLE_STANDARD_ARGS(curl     DEFAULT_MSG CURL_EXECUTABLE)
96FIND_PACKAGE_HANDLE_STANDARD_ARGS(mailx    DEFAULT_MSG MAILX_EXECUTABLE)
97FIND_PACKAGE_HANDLE_STANDARD_ARGS(jsdoc    DEFAULT_MSG JSDOC_EXECUTABLE)
98
99ENDIF (NOT TOOLS_ONLY)
100
101#IF(NOT SOME_COND)
102#  MESSAGE(FATAL_ERROR "At least one required executable was not found")
103#ENDIF()
104
105# =========== libraries =============
106
107SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
108
109# FIXME: Need to check which package finders accept REQUIERED. For all others implement checks
110
111FIND_PACKAGE(Threads  REQUIRED)  # Threads::Threads
112FIND_PACKAGE(ZLIB     REQUIRED)  # ZLIB::ZLIB
113
114SET(CURSES_NEED_NCURSES ON)
115FIND_PACKAGE(Curses   REQUIRED)  # CURSES_FOUND
116# FIXME : Require  panel
117
118IF(NOT TOOLS_ONLY)
119
120FIND_PACKAGE(OpenGL   REQUIRED)  # OpenGL::GL OpenGL::GLU / OPENGL_FOUND OPENGL_GLU_FOUND
121
122# FIND_PACKAGE(DBus)    => skaypeclient
123# FIND_PACKAGE(Motif)   => did   # MOTIF_FOUND
124
125FIND_PACKAGE(Readline REQUIRED)
126FIND_PACKAGE(Panel    REQUIRED)
127FIND_PACKAGE(V8       REQUIRED)
128FIND_PACKAGE(Cfitsio  REQUIRED)
129FIND_PACKAGE(CCfits   REQUIRED)
130
131ENDIF(NOT TOOLS_ONLY)
132
133FIND_PACKAGE(Nova     REQUIRED)
134FIND_PACKAGE(OpenSSL  REQUIRED)  # Required for boost::asio::ssl
135
136#INCLUDE_DIRECTORIES("/usr/include/mysql")
137# dbus-1 dbus-glib-1
138# doxygen
139
140#MESSAGE("")
141#MESSAGE(${V8_LIBRARY})
142#MESSAGE(${MYSQLPP_LIBRARY})
143#MESSAGE(${PANEL_LIBRARY})
144#MESSAGE(${CURSES_LIBRARIES})
145#MESSAGE(${CCFITS_LIBRARY})
146#MESSAGE(${CFITSIO_LIBRARY})
147#MESSAGE(${MYSQL_LIBRARY})
148#MESSAGE(${NOVA_LIBRARY})
149#MESSAGE(${READLINE_LIBRARY})
150#MESSAGE(${OPENSSL_SSL_LIBRARY})
151#MESSAGE("")
152
153# =============== MySQL ============
154
155INCLUDE(GetPrerequisites)
156
157FIND_PACKAGE(MySQL++ REQUIRED)
158
159IF(NOT DEFINED MYSQL_LIBRARY AND NOT CMAKE_VERSION VERSION_LESS 3.6)
160        GET_PREREQUISITES(${MYSQLPP_LIBRARY} MYSQL_LIBRARY 0 0 "" "")
161        LIST(FILTER MYSQL_LIBRARY INCLUDE REGEX .*mysqlclient.*)
162        IF (DEFINED MYSQL_LIBRARY)
163                MESSAGE(STATUS "MySQL++ links to " ${MYSQL_LIBRARY})
164        ENDIF()
165ENDIF()
166
167FIND_PACKAGE(MySQL REQUIRED)
168
169INCLUDE_DIRECTORIES(${MYSQL_INCLUDE_DIR} ${MYSQLPP_INCLUDE_DIR})
170
171
172# =============== BOOST ============
173# 1.47.0 is the newest version available at ISDC
174FIND_PACKAGE(Boost 1.47.0 REQUIRED
175        date_time
176        filesystem
177        program_options
178        regex
179        system
180        thread)
181
182IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND Boost_VERSION LESS 106000 AND NOT NO_BOOST_HACK)
183    MESSAGE(STATUS "  BOOST_REGEX_NO_EXTERNAL_TEMPLATES")
184    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_REGEX_NO_EXTERNAL_TEMPLATES=1")
185ENDIF()
186
187# At least print some information for reference
188FIND_PACKAGE_HANDLE_STANDARD_ARGS(Boost FOUND_VAR Boost_FOUND REQUIRED_VARS Boost_INCLUDE_DIR)
189
190# =============== QT4 ==============
191IF(NOT TOOLS_ONLY)
192
193FIND_PACKAGE(Qt4 REQUIRED QtCore QtGui QtOpenGL QtSql QtXml)
194FIND_PACKAGE(Qwt REQUIRED)
195
196ENDIF(NOT TOOLS_ONLY)
197
198# =========== Enable C++11 ===========
199
200SET(CMAKE_CXX_STANDARD 11)
201SET(CMAKE_C_FLAGS "-pedantic")
202
203SET(CMAKE_CXX_FLAGS
204        "${CMAKE_CXX_FLAGS} -Wall -Winit-self -Wpointer-arith \
205         -Wcast-align -Wformat=2 -Woverloaded-virtual \
206         -Wnon-virtual-dtor -Wshadow -Wno-unknown-pragmas") # -Wextra
207
208# FIXME: Move that to config.h.in
209# -D__MARS__
210SET(CMAKE_CXX_FLAGS
211        "${CMAKE_CXX_FLAGS} \
212         -D_REENTRANT -D__LINUX__ \
213         -DHAVE_ZLIB -DHAVE_ROOT -DHAVE_V8 -DHAVE_SQL -DHAVE_NOVA -DHAVE_FITS \
214         -DMARSVER=\\\"${VERSION}\\\" \
215         -DPACKAGE_VERSION=\\\"${VERSION}\\\" \
216         -DREVISION=\\\"${REVISION}\\\" \
217         -DPACKAGE_NAME=\\\"FACT++\\\" \
218         -DPACKAGE_STRING=\\\"FACT++\\\" \
219         -DPACKAGE_URL=\\\"${PACKAGE_URL}\\\" \
220         -DPACKAGE_BUGREPORT=\\\"${PACKAGE_BUGREPORT}\\\""
221         )
222
223#         -DBOOST_DISABLE_ASSERTS \
224#         -DBOOST_NO_STD_LOCALE=1 \
225#         -DBOOST_REXEG_NO_FWD=1 \
226#         -DBOOST_NO_MEMBER_TEMPLATES=1 \
227#         -DBOOST_HAS_ABI_HEADERS=1 \
228
229# Flags required for Dim
230SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux")
231
232# --------- config.h -------------
233
234#CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/config.h.in" "${PROJECT_BINARY_DIR}/config.h")
235#INCLUDE_DIRECTORIES("${PROJECT_BINARY_DIR}")
236
237SET(CMAKE_MODULE_PATH $ENV{ROOTSYS}/etc/cmake ${CMAKE_MODULE_PATH})
238
239# You need to tell CMake where to find the ROOT installation. This can be done in a number of ways:
240#   - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake
241#   - ROOT built with CMake. Add in CMAKE_PREFIX_PATH the installation prefix for ROOT
242#LIST(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS})
243
244#---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)
245
246# -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree
247# -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread
248# -lASImage -lMinuit -lHistPainter -lThread
249
250FIND_PACKAGE(ROOT REQUIRED COMPONENTS GQt)
251INCLUDE_DIRECTORIES(${ROOT_INCLUDE_DIRS})
252
253
254#MESSAGE("INCL_DIRS: ${ROOT_INCLUDE_DIRS}")
255#MESSAGE("LIBS:      ${ROOT_LIBRARIES}")
256#MESSAGE("DEFS:      ${ROOT_DEFINITIONS}")
257#MESSAGE("CXXFLAGS:  ${ROOT_CXX_FLAGS}")
258#MESSAGE("CXFLAGS:   ${ROOT_CC_FLAGS}")
259#MESSAGE("FOUND:     ${ROOT_FOUND}")
260#MESSAGE("FILE:      ${ROOT_USE_FILE}")
261#MESSAGE("DIR:       ${CMAKE_CURRENT_SOURCE_DIR}")
262#ROOT_<library>_LIBRARY PATH    Full path for each of the ROOT libraries listed in COMPONENTS
263#ROOT_<command>_CMD     PATH    Full path for each ROOT executable (rootcling, root, hadd, etc.)
264#ROOT_<option>_FOUND    BOOL    True for each enabled build option (e.g. cocoa, python, xrootd, etc.)
265
266#MESSAGE(${ROOT_LIBRARIES})
267
268
269# -------------------------------------------------------
270
271INCLUDE_DIRECTORIES(pal)
272INCLUDE_DIRECTORIES(erfa/src)
273INCLUDE_DIRECTORIES(dim/dim)
274INCLUDE_DIRECTORIES(externals)
275INCLUDE_DIRECTORIES(src)
276
277# ********************************************************
278# ********************** Libraries ***********************
279# ********************************************************
280IF (NOT TOOLS_ONLY)
281
282# =================== libPointing.so ======================
283ADD_LIBRARY(Pointing SHARED
284        pal/pal.h
285        pal/palDtt.c            pal/palDat.c            pal/palMappa.c
286        pal/palPrenut.c         pal/palEvp.c            pal/palAoppa.c
287        pal/palAoppat.c         pal/palRefco.c          pal/palRefro.c
288        pal/pal1Atmt.c          pal/palDrange.c         pal/palOne2One.c
289        pal/pal1Atms.c          pal/palMapqkz.c         pal/palAopqk.c
290        pal/palRefz.c           pal/palAmpqk.c          pal/palRdplan.c
291        pal/palDt.c             pal/palPvobs.c          pal/palNut.c
292        pal/palDmoon.c          pal/palPlanet.c         pal/palNutc.c
293        pal/palDeuler.c
294        erfa/src/gd2gc.c        erfa/src/p06e.c         erfa/src/c2s.c
295        erfa/src/eform.c        erfa/src/s2c.c          erfa/src/pas.c
296        erfa/src/pmat06.c       erfa/src/epv00.c        erfa/src/plan94.c
297        erfa/src/anpm.c         erfa/src/obl06.c        erfa/src/dat.c
298        erfa/src/af2a.c         erfa/src/rxr.c          erfa/src/gmst06.c
299        erfa/src/sepp.c         erfa/src/rz.c           erfa/src/zp.c
300        erfa/src/rxpv.c         erfa/src/pn.c           erfa/src/cr.c
301        erfa/src/seps.c         erfa/src/ry.c           erfa/src/pdp.c
302        erfa/src/pnm06a.c       erfa/src/hfk5z.c        erfa/src/epj2jd.c
303        erfa/src/pv2s.c         erfa/src/tf2a.c         erfa/src/pm.c
304        erfa/src/sxp.c          erfa/src/a2af.c         erfa/src/rxp.c
305        erfa/src/pxp.c          erfa/src/fk5hip.c       erfa/src/fw2m.c
306        erfa/src/rx.c           erfa/src/tf2d.c         erfa/src/cal2jd.c
307        erfa/src/cp.c           erfa/src/nut06a.c       erfa/src/rm2v.c
308        erfa/src/nut00a.c       erfa/src/ee06a.c        erfa/src/fk5hz.c
309        erfa/src/epb2jd.c       erfa/src/refco.c        erfa/src/a2tf.c
310        erfa/src/fapa03.c       erfa/src/gst06a.c       erfa/src/faf03.c
311        erfa/src/faur03.c       erfa/src/faju03.c       erfa/src/fal03.c
312        erfa/src/fasa03.c       erfa/src/fame03.c       erfa/src/fave03.c
313        erfa/src/fama03.c       erfa/src/faom03.c       erfa/src/gst06.c
314        erfa/src/jd2cal.c       erfa/src/gd2gce.c       erfa/src/anp.c
315        erfa/src/fae03.c        erfa/src/ir.c           erfa/src/pfw06.c
316        erfa/src/bpn2xy.c       erfa/src/eors.c         erfa/src/s06.c
317        erfa/src/trxp.c         erfa/src/era00.c        erfa/src/epj.c
318        erfa/src/d2tf.c         erfa/src/epb.c          erfa/src/rv2m.c
319        erfa/src/pap.c          erfa/src/fad03.c        erfa/src/pmp.c
320        erfa/src/tr.c           erfa/src/falp03.c)
321
322# ======================= libDim.so ======================
323ADD_LIBRARY(Dim SHARED
324#       dim/dim/dic.h
325#       dim/dim/dim_common.h
326#       dim/dim/dim.h
327#       dim/dim/dim_tcpip.h
328#       dim/dim/dis.h
329        dim/src/dic.c
330        dim/src/dis.c
331        dim/src/dna.c
332        dim/src/sll.c
333        dim/src/dll.c
334        dim/src/hash.c
335        dim/src/swap.c
336        dim/src/copy_swap.c
337        dim/src/open_dns.c
338        dim/src/conn_handler.c
339        dim/src/tcpip.c
340        dim/src/dtq.c
341        dim/src/dim_thr.c
342        dim/src/utilities.c)
343
344# ================= libDimExtension.so ===================
345ADD_LIBRARY(DimExtension SHARED
346#        src/DimSetup.h
347        src/DimSetup.cc)
348
349# ===================== libDim++.so ======================
350ADD_LIBRARY(Dim++ SHARED
351#       dim/dim/dic.hxx
352#       dim/dim/dis.hxx
353#       dim/dim/dim_core.hxx
354#       dim/dim/dim.hxx
355#       dim/dim/dim_tcpip.h
356#       dim/dim/dllist.hxx
357#       dim/dim/sllist.hxx
358#       dim/dim/tokenstring.hxx
359#       src/Dim.h
360        dim/src/diccpp.cxx
361        dim/src/dimcpp.cxx
362        dim/src/discpp.cxx
363        dim/src/tokenstring.cxx)
364
365# ================= libStateMachine.so ===================
366ADD_LIBRARY(StateMachine SHARED
367        src/WindowLog.h       src/WindowLog.cc
368        src/Readline.h        src/Readline.cc
369        src/ReadlineColor.h   src/ReadlineColor.cc
370        src/ReadlineWindow.h  src/ReadlineWindow.cc
371        src/Console.h         src/Console.cc
372        src/Shell.h           src/Shell.cc
373        src/EventImp.h        src/EventImp.cc
374        src/Event.h           src/Event.cc
375        src/State.h           src/State.cc
376        src/Description.h     src/Description.cc
377        src/MessageImp.h      src/MessageImp.cc
378        src/Converter.h       src/Converter.cc
379        src/StateMachineImp.h src/StateMachineImp.cc
380        src/StateMachine.h    src/StateMachine.cc
381        src/EventDim.h
382        src/MessageDim.h         src/MessageDim.cc
383        src/StateMachineDim.h    src/StateMachineDim.cc
384        src/DimServerList.h      src/DimServerList.cc
385        src/DimServiceInfoList.h src/DimServiceInfoList.cc
386#       src/DimNetworkList.h     src/DimNetwork.cc
387        src/ServiceList.h        src/ServiceList.cc
388        src/DimErrorRedirecter.h
389        src/DimErrorRedirecter.cc
390        src/DimDescriptionService.h
391        src/DimDescriptionService.cc
392        src/Connection.h      src/Connection.cc
393        src/ConnectionUSB.h   src/ConnectionUSB.cc
394        src/ConnectionSSL.h   src/ConnectionSSL.cc
395#       FACT.h ByteOrder.h
396        src/DimWriteStatistics.h src/DimWriteStatistics.cc)
397TARGET_LINK_LIBRARIES(StateMachine OpenSSL::SSL)
398
399ENDIF (NOT TOOLS_ONLY)
400
401# ================= libConfiguration.so ==================
402ADD_LIBRARY(Configuration SHARED
403        src/Configuration.h src/Configuration.cc
404        src/FACT.h src/FACT.cc)
405TARGET_LINK_LIBRARIES(Configuration
406        Boost::regex
407        Boost::system
408        Boost::filesystem
409        Boost::program_options
410        ${MYSQL_LIBRARY} ${MYSQLPP_LIBRARY})
411
412# ===================== libTime.so =======================
413ADD_LIBRARY(Time SHARED
414        src/Time.h src/Time.cc)
415TARGET_LINK_LIBRARIES(Time ${NOVA_LIBRARY})
416
417# ===================== libTools.so ======================
418ADD_LIBRARY(Tools SHARED
419        src/tools.h src/tools.cc)
420
421
422
423# ********************************************************
424# ********************** Manuals *************************
425# ********************************************************
426
427FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/man1)
428FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/html)
429FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/pdf)
430
431MACRO(MANPAGE program description)
432# https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/
433IF (HELP2MAN_EXECUTABLE AND ROFFHTML_EXECUTABLE AND ROFFPDF_EXECUTABLE AND GROFF_EXECUTABLE)
434        ADD_CUSTOM_COMMAND(
435                OUTPUT
436                   man1/${program}.1
437                DEPENDS
438                   ${program}
439                COMMAND
440                   ${HELP2MAN_EXECUTABLE}
441                   ${PROJECT_BINARY_DIR}/${program}
442                   -n "${description}"
443                   --no-info
444                   --output=man1/${program}.1
445                COMMAND
446                   ${GROFF_EXECUTABLE}
447                   -mandoc man1/${program}.1
448                   -T html > html/${program}.html
449                COMMAND
450                   ${GROFF_EXECUTABLE}
451                   -mandoc man1/${program}.1
452                   -T pdf > pdf/${program}.pdf
453                COMMENT
454                   "Generating man-page ${program}.1"
455                VERBATIM)
456
457        ADD_CUSTOM_TARGET(${program}.man ALL DEPENDS man1/${program}.1)
458
459        INSTALL(FILES ${PROJECT_BINARY_DIR}/man1/${program}.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
460ENDIF()
461ENDMACRO()
462
463
464
465
466# ********************************************************
467# *********************** Helpers ************************
468# ********************************************************
469
470SET(HELP++LIBS Tools Configuration Time)
471
472# --------------------------------------------------------
473
474ADD_EXECUTABLE(fitsdump src/fitsdump.cc)
475TARGET_LINK_LIBRARIES(fitsdump ${HELP++LIBS} ${ROOT_LIBRARIES} ZLIB::ZLIB)
476MANPAGE(fitsdump "FACT++ - fitsdump - Read and dump contents of a FITStable")
477
478#ADD_EXECUTABLE(fitsloader src/fitsloader.cc)
479#TARGET_LINK_LIBRARIES(fitsloader ${HELP++LIBS})
480#MANPAGE(fitsloader "")
481
482#ADD_EXECUTABLE(fitscheck src/fitscheck.cc)
483#TARGET_LINK_LIBRARIES(fitscheck ${HELP++LIBS} ZLIB::ZLIB)
484#MANPAGE(fitscheck "")
485
486#ADD_EXECUTABLE(fitsCompressor src/fitsCompressor.cc)
487#TARGET_LINK_LIBRARIES(fitsCompressor ${HELP++LIBS} ZLIB::ZLIB)
488#MANPAGE(fitsCompressor "")
489
490#ADD_EXECUTABLE(fitsselect src/fitsselect.cc)
491#TARGET_LINK_LIBRARIES(fitsselect ${HELP++LIBS} ZLIB::ZLIB)
492#MANPAGE(fitsselect "")
493
494#ADD_EXECUTABLE(readfits src/readfits.cc)
495#TARGET_LINK_LIBRARIES(readfits ${HELP++LIBS} ZLIB::ZLIB)
496#MANPAGE(readfits "")
497
498ADD_EXECUTABLE(rootifysql src/rootifysql.cc)
499TARGET_LINK_LIBRARIES(rootifysql ${HELP++LIBS} ${ROOT_LIBRARIES})
500MANPAGE(rootifysql "FACT++ - rootifysql - Write result of a SQL query into a root-file")
501
502ADD_EXECUTABLE(root2sql src/root2sql.cc)
503TARGET_LINK_LIBRARIES(root2sql ${HELP++LIBS} ${ROOT_LIBRARIES})
504MANPAGE(root2sql "FACT++ - root2sql - Fill contents of a root-tree into a MySQL database")
505
506ADD_EXECUTABLE(fits2sql src/fits2sql.cc)
507TARGET_LINK_LIBRARIES(fits2sql ${HELP++LIBS}  ZLIB::ZLIB)
508MANPAGE(fits2sql "FACT++ - fits2sql - Fill contents of a FITS table into a MySQL database")
509
510ADD_EXECUTABLE(showlog src/showlog.cc src/WindowLog.cc)
511TARGET_LINK_LIBRARIES(showlog Threads::Threads ${HELP++LIBS} ${CURSES_LIBRARIES})
512MANPAGE(showlog "")
513
514ADD_EXECUTABLE(zfits src/zfits.cc)
515TARGET_LINK_LIBRARIES(zfits ${HELP++LIBS} ZLIB::ZLIB)
516MANPAGE(zfits "")
517
518ADD_EXECUTABLE(calcsource src/calcsource.cc)
519TARGET_LINK_LIBRARIES(calcsource ${HELP++LIBS} ${ROOT_LIBRARIES})
520MANPAGE(calcsource "")
521
522IF (NOT TOOLS_ONLY)
523
524ADD_EXECUTABLE(getevent src/getevent.cc)
525TARGET_LINK_LIBRARIES(getevent ${HELP++LIBS} ZLIB::ZLIB)
526MANPAGE(getevent "")
527
528ADD_EXECUTABLE(makeplots src/makeplots.cc)
529TARGET_LINK_LIBRARIES(makeplots  ${HELP++LIBS} ${ROOT_LIBRARIES})
530MANPAGE(makeplots "")
531
532ADD_EXECUTABLE(makedata src/makedata.cc)
533TARGET_LINK_LIBRARIES(makedata ${HELP++LIBS})
534MANPAGE(makedata "")
535
536ADD_EXECUTABLE(makeschedule src/makeschedule.cc)
537TARGET_LINK_LIBRARIES(makeschedule ${HELP++LIBS})
538MANPAGE(makeschedule "")
539
540# ********************************************************
541# ********************* Operation ************************
542# ********************************************************
543
544SET(FACT++LIBS
545        StateMachine Tools Configuration Time Dim++ Dim DimExtension
546        mysqlpp readline ${CURSES_LIBRARIES} panel Boost::thread) # HAVE_SQL
547
548# --------------------------------------------------------
549
550ADD_EXECUTABLE(dns src/dns.c)
551TARGET_LINK_LIBRARIES(dns ${FACT++LIBS})
552MANPAGE(dns "")
553
554ADD_EXECUTABLE(agilentctrl src/agilentctrl.cc)
555TARGET_LINK_LIBRARIES(agilentctrl ${FACT++LIBS})
556MANPAGE(agilentctrl "")
557
558ADD_EXECUTABLE(biasctrl src/biasctrl.cc)
559TARGET_LINK_LIBRARIES(biasctrl ${FACT++LIBS})
560MANPAGE(biasctrl "")
561
562ADD_EXECUTABLE(biastemp src/biastemp.cc)
563TARGET_LINK_LIBRARIES(biastemp ${FACT++LIBS})
564MANPAGE(biastemp "")
565
566ADD_EXECUTABLE(chatserv src/chatserv.cc)
567TARGET_LINK_LIBRARIES(chatserv ${FACT++LIBS}) # does not require libpanel
568MANPAGE(chatserv "")
569
570ADD_EXECUTABLE(chatclient src/chatclient.cc)
571TARGET_LINK_LIBRARIES(chatclient ${FACT++LIBS}) # does not require libpanel
572MANPAGE(chatclient "")
573
574#ADD_EXECUTABLE(cosyctrl src/cosyctrl.cc)# src/LocalControl.h
575#TARGET_LINK_LIBRARIES(cosyctrl
576#       StateMachine Tools Configuration Time Dim++ Dim DimExtension
577#        ${Boost_LIBRARIES} readline ${CURSES_LIBRARIES})
578
579ADD_EXECUTABLE(datalogger src/datalogger.cc
580        src/DimState.cc
581        src/FitsFile.cc src/Fits.cc)
582TARGET_LINK_LIBRARIES(datalogger ${FACT++LIBS} cfitsio CCfits)
583MANPAGE(datalogger "")
584
585ADD_EXECUTABLE(dimctrl src/dimctrl.cc
586        src/StateMachineDimControl.cc
587        src/RemoteControl.cc
588        src/InterpreterV8.cc
589        src/DimState.cc)
590TARGET_LINK_LIBRARIES(dimctrl ${FACT++LIBS} Pointing ZLIB::ZLIB v8)
591MANPAGE(dimctrl "")
592
593ADD_CUSTOM_TARGET(dimserver ALL
594        COMMAND ln -sf dimctrl dimserver
595        COMMENT "Creating symlink for dimserver"
596        DEPENDS dimctrl)
597
598ADD_EXECUTABLE(drivectrl src/drivectrl.cc)
599TARGET_LINK_LIBRARIES(drivectrl ${FACT++LIBS} Pointing)
600MANPAGE(drivectrl "")
601
602ADD_EXECUTABLE(evtserver src/evtserver.cc)
603TARGET_LINK_LIBRARIES(evtserver ${FACT++LIBS} ZLIB::ZLIB)
604MANPAGE(evtserver "")
605
606ADD_EXECUTABLE(fadctrl src/fadctrl.cc src/HeadersFAD.cc
607        src/EventBuilder.cc
608        src/FitsFile.cc
609        src/DataCalib.cc
610        src/DataWriteRaw.cc
611        src/DataWriteFits.cc
612        src/DataWriteFits2.cc
613        src/DataProcessorImp.cc)
614TARGET_LINK_LIBRARIES(fadctrl ${FACT++LIBS} cfitsio CCfits ZLIB::ZLIB)
615MANPAGE(fadctrl "")
616
617ADD_EXECUTABLE(feedback src/feedback.cc)
618TARGET_LINK_LIBRARIES(feedback ${FACT++LIBS})
619MANPAGE(feedback "")
620
621ADD_EXECUTABLE(fscctrl src/fscctrl.cc src/HeadersFTM.cc)
622TARGET_LINK_LIBRARIES(fscctrl ${FACT++LIBS})
623MANPAGE(fscctrl "")
624
625ADD_EXECUTABLE(ftmctrl src/ftmctrl.cc src/HeadersFTM.cc)
626TARGET_LINK_LIBRARIES(ftmctrl ${FACT++LIBS})
627MANPAGE(ftmctrl "")
628
629ADD_EXECUTABLE(gcn src/gcn.cc)
630TARGET_LINK_LIBRARIES(gcn ${FACT++LIBS} Qt4::QtXml)
631MANPAGE(gcn "")
632
633ADD_EXECUTABLE(gpsctrl src/gpsctrl.cc)
634TARGET_LINK_LIBRARIES(gpsctrl ${FACT++LIBS})
635MANPAGE(gpsctrl "")
636
637ADD_EXECUTABLE(lidctrl src/lidctrl.cc)
638TARGET_LINK_LIBRARIES(lidctrl ${FACT++LIBS} Qt4::QtXml)
639MANPAGE(lidctrl "")
640
641ADD_EXECUTABLE(magiclidar src/magiclidar.cc)
642TARGET_LINK_LIBRARIES(magiclidar ${FACT++LIBS})
643MANPAGE(magiclidar "")
644
645ADD_EXECUTABLE(magicweather src/magicweather.cc)
646TARGET_LINK_LIBRARIES(magicweather ${FACT++LIBS})
647MANPAGE(magicweather "")
648
649ADD_EXECUTABLE(mcp src/mcp.cc)
650TARGET_LINK_LIBRARIES(mcp ${FACT++LIBS})
651MANPAGE(mcp "")
652
653ADD_EXECUTABLE(pfminictrl src/pfminictrl.cc)
654TARGET_LINK_LIBRARIES(pfminictrl ${FACT++LIBS})
655MANPAGE(pfminictrl "")
656
657ADD_EXECUTABLE(pwrctrl src/pwrctrl.cc src/HeadersPower.cc)
658TARGET_LINK_LIBRARIES(pwrctrl ${FACT++LIBS} Qt4::QtXml)
659MANPAGE(pwrctrl "")
660
661ADD_EXECUTABLE(rainsensor src/rainsensor.cc)
662TARGET_LINK_LIBRARIES(rainsensor ${FACT++LIBS})
663MANPAGE(rainsensor "")
664
665ADD_EXECUTABLE(ratecontrol src/ratecontrol.cc)
666TARGET_LINK_LIBRARIES(ratecontrol ${FACT++LIBS})
667MANPAGE(ratecontrol "")
668
669ADD_EXECUTABLE(ratescan src/ratescan.cc)
670TARGET_LINK_LIBRARIES(ratescan ${FACT++LIBS})
671MANPAGE(ratescan "")
672
673#ADD_EXECUTABLE(scheduler src/scheduler.cc)
674#TARGET_LINK_LIBRARIES(scheduler ${FACT++LIBS})
675#MANPAGE(scheduler "")
676
677#ADD_EXECUTABLE(skypeclient src/skypeclient.cc)
678#TARGET_LINK_LIBRARIES(skypeclient ${FACT++LIBS})
679#MANPAGE(skypeclient "")
680
681ADD_EXECUTABLE(sqmctrl src/sqmctrl.cc)
682TARGET_LINK_LIBRARIES(sqmctrl ${FACT++LIBS})
683MANPAGE(sqmctrl "")
684
685ADD_EXECUTABLE(smartfact src/smartfact.cc)
686TARGET_LINK_LIBRARIES(smartfact ${FACT++LIBS}) # HAVE_NOVA
687MANPAGE(smartfact "")
688
689ADD_EXECUTABLE(temperature src/temperature.cc)
690TARGET_LINK_LIBRARIES(temperature ${FACT++LIBS})
691MANPAGE(temperature "")
692
693ADD_EXECUTABLE(timecheck src/timecheck.cc)
694TARGET_LINK_LIBRARIES(timecheck ${FACT++LIBS})
695MANPAGE(timecheck "")
696
697ADD_EXECUTABLE(tngweather src/tngweather.cc)
698TARGET_LINK_LIBRARIES(tngweather ${FACT++LIBS} Qt4::QtXml)
699MANPAGE(tngweather "")
700
701#ADD_EXECUTABLE(triggerschedule src/triggerschedule.cc)
702#TARGET_LINK_LIBRARIES(triggerschedule ${FACT++LIBS})
703#MANPAGE(triggerschedule "")
704
705
706
707# ********************************************************
708# ****************** GUI Applications ********************
709# ********************************************************
710
711INCLUDE_DIRECTORIES(/usr/include/qwt-qt4 gui gui/RawEventsViewer)
712FILE(WRITE ${CMAKE_BINARY_DIR}/design.h "#include \"ui_design.h\"")
713FILE(WRITE ${CMAKE_BINARY_DIR}/viewer.h "#include \"ui_viewer.h\"")
714
715# --------------------------------------------------------
716
717QT4_WRAP_UI(VIEWER_QT_HEADERS gui/RawEventsViewer/viewer.ui)
718
719QT4_WRAP_CPP(VIEWER_QT_SOURCES
720        gui/RawEventsViewer/RawEventsViewer.h
721        gui/BasicGlCamera.h
722        gui/QCameraWidget.h
723        gui/Q3DCameraWidget.h)
724
725ADD_EXECUTABLE(viewer
726        gui/RawEventsViewer/RawEventsViewer.cc
727        gui/BasicGlCamera.cc
728        gui/QCameraWidget.cc
729        gui/Q3DCameraWidget.cc
730        ${VIEWER_QT_HEADERS}
731        ${VIEWER_QT_SOURCES})
732
733TARGET_LINK_LIBRARIES(viewer
734        ${Boost_LIBRARIES} Configuration mysqlpp
735        Qt4::QtGui Qt4::QtOpenGL
736        ${OPENGL_LIBRARIES} # OpenGL::GL OpenGL::GLU
737        qwt-qt4 ZLIB::ZLIB)
738
739# --------------------------------------------------------
740
741QT4_ADD_RESOURCES(FACT_QT_RESOURCES gui/design.qrc)
742
743QT4_WRAP_UI(FACT_QT_HEADERS gui/design.ui)
744
745QT4_WRAP_CPP(FACT_QT_SOURCES
746        gui/DockWindow.h
747        gui/MainWindow.h
748        gui/QCameraWidget.h
749        gui/BasicGlCamera.h)
750
751ADD_EXECUTABLE(fact gui/fact.cc
752        gui/DockWindow.cc
753        gui/MainWindow.cc
754        gui/QCameraWidget.cc
755        gui/BasicGlCamera.cc
756        gui/HtmlDelegate.cc
757        gui/CheckBoxDelegate.cc
758        src/DimNetwork.cc
759        ${FACT_QT_HEADERS}
760        ${FACT_QT_SOURCES}
761        ${FACT_QT_RESOURCES})
762
763TARGET_LINK_LIBRARIES(fact
764        ${FACT++LIBS}
765        ${ROOT_LIBRARIES}
766        Qt4::QtGui Qt4::QtOpenGL Qt4::QtSql
767        ${OPENGL_LIBRARIES} # OpenGL::GL OpenGL::GLU
768        qwt-qt4 ZLIB::ZLIB)
769
770
771#dclient5_SOURCES = src/dclient5.cc src/LocalControl.h
772#dclient5_LDADD   = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la \
773#    libConfiguration.la
774
775#argv_SOURCES = src/argv.cc
776#argv_LDADD = libConfiguration.la
777
778#time_SOURCES = src/time.cc
779#time_LDADD = libTime.la
780
781#test_SOURCES = src/test.cc
782#test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
783
784ENDIF(NOT TOOLS_ONLY)
785
786
787# ********************************************************
788# ********************** FAMOUS **************************
789# ********************************************************
790
791IF(FOUND_FAMOUS)
792        INCLUDE_DIRECTORIES(famous/ui)
793        INCLUDE_DIRECTORIES(famous/src)
794
795        ADD_EXECUTABLE(famousbias famous/src/biasctrl.cc)
796        TARGET_LINK_LIBRARIES(famousbias ${FACT++LIBS})
797        MANPAGE(famousbias "")
798
799        ADD_EXECUTABLE(famousui famous/ui/famousui.cc)
800        TARGET_LINK_LIBRARIES(famousui ${FACT++LIBS})
801        MANPAGE(famousui "")
802
803        ADD_EXECUTABLE(ftuctrl famous/src/ftuctrl.cc)
804        TARGET_LINK_LIBRARIES(ftuctrl ${FACT++LIBS})
805        MANPAGE(ftuctrl "")
806
807        ADD_EXECUTABLE(miniftmctrl famous/src/miniftmctrl.cc)
808        TARGET_LINK_LIBRARIES(miniftmctrl ${FACT++LIBS})
809        MANPAGE(miniftmctrl "")
810
811        ADD_EXECUTABLE(fpgaftmctrl famous/src/fpgaftmctrl.cc)
812        TARGET_LINK_LIBRARIES(fpgaftmctrl ${FACT++LIBS})
813        MANPAGE(fpgaftmctrl "")
814
815        ADD_EXECUTABLE(famousrate famous/src/ratecontrol.cc)
816        TARGET_LINK_LIBRARIES(famousrate ${FACT++LIBS})
817        MANPAGE(famousrate "")
818ENDIF()
819
820
821
822# ********************************************************
823# ********************** IceACT **************************
824# ********************************************************
825
826IF(FOUND_ICEACT)
827        ADD_EXECUTABLE(iceactpsu iceact/src/psuctrl.cc)
828        TARGET_LINK_LIBRARIES(iceactpsu ${FACT++LIBS})
829        MANPAGE(iceactpsu "")
830
831        ADD_EXECUTABLE(tmonctrl iceact/src/tmonctrl.cc)
832        TARGET_LINK_LIBRARIES(tmonctrl ${FACT++LIBS})
833        MANPAGE(tmonctrl "")
834ENDIF()
835
836
837# *********************************
838# ********** Installation *********
839# *********************************
840
841# ======== Setup directories ======
842
843# MESSAGE("")
844# MESSAGE("PREFIX:         "${CMAKE_INSTALL_PREFIX})
845# MESSAGE("")
846# MESSAGE("BINDIR:         "${CMAKE_INSTALL_FULL_BINDIR})
847# MESSAGE("SBINDIR:        "${CMAKE_INSTALL_FULL_SBINDIR})
848# MESSAGE("LIBEXECDIR:     "${CMAKE_INSTALL_FULL_LIBEXECDIR})
849# MESSAGE("SHAREDSTATEDIR: "${CMAKE_INSTALL_FULL_SHAREDSTATEDIR})
850# MESSAGE("LOCALSTATEDIR:  "${CMAKE_INSTALL_FULL_LOCALSTATEDIR})
851# MESSAGE("RUNSTATEDIR:    "${CMAKE_INSTALL_FULL_RUNSTATEDIR})
852# MESSAGE("LIBDIR:         "${CMAKE_INSTALL_FULL_LIBDIR})
853# MESSAGE("INCLUDEDIR:     "${CMAKE_INSTALL_FULL_INCLUDEDIR})
854# MESSAGE("DATAROOTDIR:    "${CMAKE_INSTALL_FULL_DATAROOTDIR})
855# MESSAGE("DATADIR:        "${CMAKE_INSTALL_FULL_DATADIR})
856# MESSAGE("INFODIR:        "${CMAKE_INSTALL_FULL_INFODIR})
857# MESSAGE("LOCALDIR:       "${CMAKE_INSTALL_FULL_LOCALDIR})
858# MESSAGE("MANDIR:         "${CMAKE_INSTALL_FULL_MANDIR})
859# MESSAGE("DOCDIR:         "${CMAKE_INSTALL_FULL_DOCDIR})
860# MESSAGE("")
861# MESSAGE("BINDIR:         "${CMAKE_INSTALL_BINDIR})
862# MESSAGE("SBINDIR:        "${CMAKE_INSTALL_SBINDIR})
863# MESSAGE("LIBEXECDIR:     "${CMAKE_INSTALL_LIBEXECDIR})
864# MESSAGE("SHAREDSTATEDIR: "${CMAKE_INSTALL_SHAREDSTATEDIR})
865# MESSAGE("LOCALSTATEDIR:  "${CMAKE_INSTALL_LOCALSTATEDIR})
866# MESSAGE("RUNSTATEDIR:    "${CMAKE_INSTALL_RUNSTATEDIR})
867# MESSAGE("LIBDIR:         "${CMAKE_INSTALL_LIBDIR})
868# MESSAGE("INCLUDEDIR:     "${CMAKE_INSTALL_INCLUDEDIR})
869# MESSAGE("DATAROOTDIR:    "${CMAKE_INSTALL_DATAROOTDIR})
870# MESSAGE("DATADIR:        "${CMAKE_INSTALL_DATADIR})
871# MESSAGE("INFODIR:        "${CMAKE_INSTALL_INFODIR})
872# MESSAGE("LOCALDIR:       "${CMAKE_INSTALL_LOCALDIR})
873# MESSAGE("MANDIR:         "${CMAKE_INSTALL_MANDIR})
874# MESSAGE("DOCDIR:         "${CMAKE_INSTALL_DOCDIR})
875# MESSAGE("")
876
877SET(PKG_SHARE    "${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}")
878SET(PKG_APPS     "${CMAKE_INSTALL_DATAROOTDIR}/applications")
879SET(PKG_PIXMAPS  "${CMAKE_INSTALL_DATAROOTDIR}/pixmaps")
880
881# ====== Installation targets =====
882
883INSTALL(TARGETS  fits2sql       DESTINATION "${CMAKE_INSTALL_BINDIR}")
884INSTALL(TARGETS  root2sql       DESTINATION "${CMAKE_INSTALL_BINDIR}")
885INSTALL(TARGETS  fitsdump       DESTINATION "${CMAKE_INSTALL_BINDIR}")
886INSTALL(TARGETS  zfits          DESTINATION "${CMAKE_INSTALL_BINDIR}")
887INSTALL(TARGETS  calcsource     DESTINATION "${CMAKE_INSTALL_BINDIR}")
888INSTALL(TARGETS  showlog        DESTINATION "${CMAKE_INSTALL_BINDIR}")
889INSTALL(TARGETS  rootifysql     DESTINATION "${CMAKE_INSTALL_BINDIR}")
890INSTALL(TARGETS  Configuration  DESTINATION "${CMAKE_INSTALL_LIBDIR}")
891INSTALL(TARGETS  Time           DESTINATION "${CMAKE_INSTALL_LIBDIR}")
892INSTALL(TARGETS  Tools          DESTINATION "${CMAKE_INSTALL_LIBDIR}")
893
894#INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/html DESTINATION  "${PKG_SHARE}" FILES_MATCHING PATTERN "*.html")
895#INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/pdf  DESTINATION  "${PKG_SHARE}" FILES_MATCHING PATTERN "*.pdf")
896
897# *********************************
898# ************ Packaging **********
899# *********************************
900
901# ======== General packaging ======
902# https://cmake.org/cmake/help/latest/module/CPack.html
903
904INCLUDE(InstallRequiredSystemLibraries)
905
906# SET(CPACK_STRIP_FILES ON) # Strip debug sysmbold from files
907
908SET(CPACK_PACKAGE_VERSION       "${fact++_VERSION}")
909SET(CPACK_PACKAGE_CONTACT       "${PACKAGE_BUGREPORT}")
910SET(CPACK_PACKAGE_MAINTAINER    "${PACKAGE_MAINTAINER}")
911SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
912#SET(CPACK_PACKAGE_VENDOR "Me, myself, and I")
913
914
915SET(CPACK_SOURCE_IGNORE_FILES "/old/;/build/;/[.].*/;/autom4te[.]cache/;.*~;.log$")
916
917# Maybe the text displayed in synaptic?
918SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
919SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "FACT++ - Toolset")
920#CPACK_RESOURCE_FILE_README     ReadMe file to be embedded in the installer.
921
922SET(CPACK_GENERATOR        TBZ2 DEB) # TGZ
923SET(CPACK_SOURCE_GENERATOR TBZ2)     # TGZ
924#SET(CPACK_PROJECT_CONFIG_FILE ${CMAKE_SOURCE_DIR}/cmake/Package.txt)
925#SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt")
926
927
928# ======== Debian packaging =======
929# https://cmake.org/cmake/help/latest/module/CPackDeb.html
930# https://www.debian.org/doc/debian-policy
931
932#SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libao4 (>=1.0), libsfm-system2.3v5 (>=2.3), libsfml-graphicsv2.3v5 (>=2.3), libsfml-audio2.3v5 (>=2.3), libsfm-window2.3v5 (>2.3)")
933SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS 1) # generate better (atomatic?) dependecies
934SET(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY ">=")
935SET(CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION TRUE)
936SET(CPACK_DEBIAN_PACKAGE_SECTION utils)
937SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "${PACKAGE_URL}")
938SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION
939"${CPACK_PACKAGE_DESCRIPTION_SUMMARY}
940 This package contains some tools which are part of FACT++ to deal with databases, fits files and root-files.")
941#indent the long description with spaces
942
943#CPACK_INSTALL_CMAKE_PROJECTS
944#List of four values that specify what project to install. Build directory, Project Name, Project Component, Directory.
945
946INCLUDE(CPack)
Note: See TracBrowser for help on using the repository browser.