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

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