1 | # *********************************
|
---|
2 | # ************ cmake **************
|
---|
3 | # *********************************
|
---|
4 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
---|
5 | CMAKE_POLICY(SET CMP0043 NEW)
|
---|
6 | CMAKE_POLICY(SET CMP0048 NEW)
|
---|
7 |
|
---|
8 | # Enable debug symbols by default
|
---|
9 | # must be done before project() statement
|
---|
10 | #IF (NOT CMAKE_BUILD_TYPE)
|
---|
11 | # SET(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build (Debug or Release)" FORCE)
|
---|
12 | #ENDIF()
|
---|
13 | # (you can also set it on the command line: -D CMAKE_BUILD_TYPE=Release)
|
---|
14 |
|
---|
15 | # Enable CLANG as default compilers, to change this use
|
---|
16 | # cmake -DCMAKE_C_COMPILER=cc -DCMAKE_CXX_COMPILER=c++
|
---|
17 | # Note that if compilers are switched on the fly,
|
---|
18 | # the cache is deleted
|
---|
19 |
|
---|
20 | # The version of clang is not compatible with boost::regex on Ubuntu 16.04 :(
|
---|
21 |
|
---|
22 | #IF (NOT DEFINED CMAKE_C_COMPILER)
|
---|
23 | # SET(CMAKE_C_COMPILER "clang")# CACHE STRING "Choose the compiler (c++, g++, clang++)" FORCE)
|
---|
24 | #ENDIF()
|
---|
25 | #
|
---|
26 | #IF (NOT DEFINED CMAKE_CXX_COMPILER)
|
---|
27 | # SET(CMAKE_CXX_COMPILER "clang++")# CACHE STRING "Choose the compiler (c++, g++, clang++)" FORCE)
|
---|
28 | #ENDIF()
|
---|
29 |
|
---|
30 | #SET(CMAKE_VERBOSE_MAKEFILE ON)
|
---|
31 |
|
---|
32 |
|
---|
33 |
|
---|
34 | # *********************************
|
---|
35 | # ************ Project ************
|
---|
36 | # *********************************
|
---|
37 |
|
---|
38 | STRING(TIMESTAMP VERSION %y.%U.%w.%H UTC)
|
---|
39 |
|
---|
40 | MESSAGE(STATUS "FACT++ V${VERSION}")
|
---|
41 |
|
---|
42 | PROJECT(fact++ VERSION ${VERSION})
|
---|
43 |
|
---|
44 | INCLUDE(GNUInstallDirs)
|
---|
45 |
|
---|
46 | # ======== For config.h.in =========
|
---|
47 | SET(PACKAGE_MAINTAINER "Thomas Bretz")
|
---|
48 | SET(PACKAGE_BUGREPORT "tbretz@physik.rwth-aachen.de")
|
---|
49 | SET(PACKAGE_URL "https://www.fact-project.org")
|
---|
50 |
|
---|
51 |
|
---|
52 |
|
---|
53 | # *********************************
|
---|
54 | # ******** FAMOUS / IceACT ********
|
---|
55 | # *********************************
|
---|
56 |
|
---|
57 | IF(EXISTS "${CMAKE_SOURCE_DIR}/famous")
|
---|
58 | MESSAGE(STATUS "Compilation of 'famous' enabled.")
|
---|
59 | SET(FOUND_FAMOUS ON)
|
---|
60 | ENDIF()
|
---|
61 |
|
---|
62 | IF(EXISTS "${CMAKE_SOURCE_DIR}/iceact")
|
---|
63 | MESSAGE(STATUS "Compilation of 'iceact' enabled.")
|
---|
64 | SET(FOUND_ICEACT ON)
|
---|
65 | ENDIF()
|
---|
66 |
|
---|
67 |
|
---|
68 |
|
---|
69 | # *********************************
|
---|
70 | # ********* Requirements **********
|
---|
71 | # *********************************
|
---|
72 |
|
---|
73 | # =========== pkg-config ============
|
---|
74 | FIND_PACKAGE(PkgConfig)
|
---|
75 | FIND_PACKAGE(PackageHandleStandardArgs)
|
---|
76 |
|
---|
77 |
|
---|
78 | # ========== executables ==========
|
---|
79 | FIND_PROGRAM(HELP2MAN_EXECUTABLE help2man)
|
---|
80 | FIND_PROGRAM(JSDOC_EXECUTABLE jsdoc)
|
---|
81 | FIND_PROGRAM(MAILX_EXECUTABLE mailx)
|
---|
82 | FIND_PROGRAM(CURL_EXECUTABLE curl)
|
---|
83 | FIND_PROGRAM(GROFF_EXECUTABLE groff)
|
---|
84 |
|
---|
85 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(groff DEFAULT_MSG GROFF_EXECUTABLE)
|
---|
86 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(curl DEFAULT_MSG CURL_EXECUTABLE)
|
---|
87 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(mailx DEFAULT_MSG MAILX_EXECUTABLE)
|
---|
88 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(jsdoc DEFAULT_MSG JSDOC_EXECUTABLE)
|
---|
89 | FIND_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()
|
---|
94 |
|
---|
95 | # =========== libraries =============
|
---|
96 |
|
---|
97 | SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
---|
98 |
|
---|
99 | # FIXME: Need to check which package finders accept REQUIERED. For all others implement checks
|
---|
100 |
|
---|
101 | FIND_PACKAGE(Threads REQUIRED) # Threads::Threads
|
---|
102 | FIND_PACKAGE(ZLIB REQUIRED) # ZLIB::ZLIB
|
---|
103 | FIND_PACKAGE(OpenGL REQUIRED) # OpenGL::GL OpenGL::GLU / OPENGL_FOUND OPENGL_GLU_FOUND
|
---|
104 |
|
---|
105 | SET(CURSES_NEED_NCURSES ON)
|
---|
106 | FIND_PACKAGE(Curses REQUIRED) # CURSES_FOUND
|
---|
107 | # FIXME : Require panel
|
---|
108 |
|
---|
109 | # FIND_PACKAGE(DBus) => skaypeclient
|
---|
110 | # FIND_PACKAGE(Motif) => did # MOTIF_FOUND
|
---|
111 | FIND_PACKAGE(Readline REQUIRED)
|
---|
112 | FIND_PACKAGE(Panel REQUIRED)
|
---|
113 | FIND_PACKAGE(Nova REQUIRED)
|
---|
114 | FIND_PACKAGE(MySQL REQUIRED)
|
---|
115 | FIND_PACKAGE(MySQL++ REQUIRED)
|
---|
116 | FIND_PACKAGE(V8 REQUIRED)
|
---|
117 | FIND_PACKAGE(Cfitsio REQUIRED)
|
---|
118 | FIND_PACKAGE(CCfits REQUIRED)
|
---|
119 | FIND_PACKAGE(OpenSSL REQUIRED) # Required for boost::asio::ssl
|
---|
120 |
|
---|
121 | #INCLUDE_DIRECTORIES("/usr/include/mysql")
|
---|
122 | # dbus-1 dbus-glib-1
|
---|
123 | # doxygen
|
---|
124 |
|
---|
125 | #MESSAGE("")
|
---|
126 | #MESSAGE(${V8_LIBRARY})
|
---|
127 | #MESSAGE(${MYSQLPP_LIBRARY})
|
---|
128 | #MESSAGE(${PANEL_LIBRARY})
|
---|
129 | #MESSAGE(${CURSES_LIBRARIES})
|
---|
130 | #MESSAGE(${CCFITS_LIBRARY})
|
---|
131 | #MESSAGE(${CFITSIO_LIBRARY})
|
---|
132 | #MESSAGE(${MYSQL_LIBRARY})
|
---|
133 | #MESSAGE(${NOVA_LIBRARY})
|
---|
134 | #MESSAGE(${READLINE_LIBRARY})
|
---|
135 | #MESSAGE(${OPENSSL_SSL_LIBRARY})
|
---|
136 | #MESSAGE("")
|
---|
137 |
|
---|
138 | INCLUDE_DIRECTORIES(${MYSQL_INCLUDE_DIR})
|
---|
139 |
|
---|
140 |
|
---|
141 | # =============== BOOST ============
|
---|
142 | #SET(Boost_ADDITIONAL_VERSIONS "1.78" "1.78.0" "1.79" "1.79.0")
|
---|
143 | FIND_PACKAGE(Boost 1.58.0 REQUIRED
|
---|
144 | date_time
|
---|
145 | filesystem
|
---|
146 | program_options
|
---|
147 | regex
|
---|
148 | system
|
---|
149 | thread)
|
---|
150 |
|
---|
151 | # =============== QT4 ==============
|
---|
152 | SET(CMAKE_INCLUDE_CURRENT_DIR ON)
|
---|
153 | FIND_PACKAGE(Qt4 REQUIRED QtCore QtGui QtOpenGL QtSql QtXml)
|
---|
154 |
|
---|
155 |
|
---|
156 | # =========== Enable C++11 ===========
|
---|
157 |
|
---|
158 | SET(CMAKE_CXX_STANDARD 11)
|
---|
159 | SET(CMAKE_C_FLAGS "-pedantic")
|
---|
160 |
|
---|
161 | SET(CMAKE_CXX_FLAGS
|
---|
162 | "${CMAKE_CXX_FLAGS} -Wall -Winit-self -Wpointer-arith \
|
---|
163 | -Wcast-align -Wformat=2 -Woverloaded-virtual \
|
---|
164 | -Wnon-virtual-dtor -Wshadow") # -Wextra
|
---|
165 |
|
---|
166 | # FIXME: Move that to config.h.in
|
---|
167 | # -D__MARS__
|
---|
168 | SET(CMAKE_CXX_FLAGS
|
---|
169 | "${CMAKE_CXX_FLAGS} \
|
---|
170 | -D_REENTRANT -D__LINUX__ \
|
---|
171 | -DHAVE_ZLIB -DHAVE_ROOT -DHAVE_V8 -DHAVE_SQL -DHAVE_NOVA -DHAVE_FITS \
|
---|
172 | -DMARSVER=\\\"${VERSION}\\\" \
|
---|
173 | -DPACKAGE_VERSION=\\\"${VERSION}\\\" \
|
---|
174 | -DREVISION=\\\"${REVISION}\\\" \
|
---|
175 | -DPACKAGE_NAME=\\\"FACT++\\\" \
|
---|
176 | -DPACKAGE_STRING=\\\"FACT++\\\" \
|
---|
177 | -DPACKAGE_URL=\\\"${PACKAGE_URL}\\\" \
|
---|
178 | -DPACKAGE_BUGREPORT=\\\"${PACKAGE_BUGREPORT}\\\""
|
---|
179 | )
|
---|
180 |
|
---|
181 | # -DBOOST_DISABLE_ASSERTS \
|
---|
182 | # -DBOOST_NO_STD_LOCALE=1 \
|
---|
183 | # -DBOOST_REXEG_NO_FWD=1 \
|
---|
184 | # -DBOOST_NO_MEMBER_TEMPLATES=1 \
|
---|
185 | # -DBOOST_HAS_ABI_HEADERS=1 \
|
---|
186 |
|
---|
187 | # Flags required for Dim
|
---|
188 | SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux")
|
---|
189 |
|
---|
190 | # --------- config.h -------------
|
---|
191 |
|
---|
192 | #CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/config.h.in" "${PROJECT_BINARY_DIR}/config.h")
|
---|
193 | #INCLUDE_DIRECTORIES("${PROJECT_BINARY_DIR}")
|
---|
194 |
|
---|
195 | SET(CMAKE_MODULE_PATH $ENV{ROOTSYS}/etc/cmake ${CMAKE_MODULE_PATH})
|
---|
196 |
|
---|
197 | # You need to tell CMake where to find the ROOT installation. This can be done in a number of ways:
|
---|
198 | # - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake
|
---|
199 | # - ROOT built with CMake. Add in CMAKE_PREFIX_PATH the installation prefix for ROOT
|
---|
200 | #LIST(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS})
|
---|
201 |
|
---|
202 | #---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)
|
---|
203 |
|
---|
204 | # -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree
|
---|
205 | # -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread
|
---|
206 | # -lASImage -lMinuit -lHistPainter -lThread
|
---|
207 |
|
---|
208 | FIND_PACKAGE(ROOT REQUIRED COMPONENTS GQt)
|
---|
209 | INCLUDE_DIRECTORIES(${ROOT_INCLUDE_DIRS})
|
---|
210 |
|
---|
211 |
|
---|
212 | #MESSAGE("INCL_DIRS: ${ROOT_INCLUDE_DIRS}")
|
---|
213 | #MESSAGE("LIBS: ${ROOT_LIBRARIES}")
|
---|
214 | #MESSAGE("DEFS: ${ROOT_DEFINITIONS}")
|
---|
215 | #MESSAGE("CXXFLAGS: ${ROOT_CXX_FLAGS}")
|
---|
216 | #MESSAGE("CXFLAGS: ${ROOT_CC_FLAGS}")
|
---|
217 | #MESSAGE("FOUND: ${ROOT_FOUND}")
|
---|
218 | #MESSAGE("FILE: ${ROOT_USE_FILE}")
|
---|
219 | #MESSAGE("DIR: ${CMAKE_CURRENT_SOURCE_DIR}")
|
---|
220 | #ROOT_<library>_LIBRARY PATH Full path for each of the ROOT libraries listed in COMPONENTS
|
---|
221 | #ROOT_<command>_CMD PATH Full path for each ROOT executable (rootcling, root, hadd, etc.)
|
---|
222 | #ROOT_<option>_FOUND BOOL True for each enabled build option (e.g. cocoa, python, xrootd, etc.)
|
---|
223 |
|
---|
224 | #MESSAGE(${ROOT_LIBRARIES})
|
---|
225 |
|
---|
226 |
|
---|
227 | # -------------------------------------------------------
|
---|
228 |
|
---|
229 | INCLUDE_DIRECTORIES(pal)
|
---|
230 | INCLUDE_DIRECTORIES(erfa/src)
|
---|
231 | INCLUDE_DIRECTORIES(dim/dim)
|
---|
232 | INCLUDE_DIRECTORIES(externals)
|
---|
233 | INCLUDE_DIRECTORIES(src)
|
---|
234 |
|
---|
235 | # ********************************************************
|
---|
236 | # ********************** Libraries ***********************
|
---|
237 | # ********************************************************
|
---|
238 |
|
---|
239 | # =================== libPointing.so ======================
|
---|
240 | ADD_LIBRARY(Pointing SHARED
|
---|
241 | pal/pal.h
|
---|
242 | pal/palDtt.c pal/palDat.c pal/palMappa.c
|
---|
243 | pal/palPrenut.c pal/palEvp.c pal/palAoppa.c
|
---|
244 | pal/palAoppat.c pal/palRefco.c pal/palRefro.c
|
---|
245 | pal/pal1Atmt.c pal/palDrange.c pal/palOne2One.c
|
---|
246 | pal/pal1Atms.c pal/palMapqkz.c pal/palAopqk.c
|
---|
247 | pal/palRefz.c pal/palAmpqk.c pal/palRdplan.c
|
---|
248 | pal/palDt.c pal/palPvobs.c pal/palNut.c
|
---|
249 | pal/palDmoon.c pal/palPlanet.c pal/palNutc.c
|
---|
250 | pal/palDeuler.c
|
---|
251 | erfa/src/gd2gc.c erfa/src/p06e.c erfa/src/c2s.c
|
---|
252 | erfa/src/eform.c erfa/src/s2c.c erfa/src/pas.c
|
---|
253 | erfa/src/pmat06.c erfa/src/epv00.c erfa/src/plan94.c
|
---|
254 | erfa/src/anpm.c erfa/src/obl06.c erfa/src/dat.c
|
---|
255 | erfa/src/af2a.c erfa/src/rxr.c erfa/src/gmst06.c
|
---|
256 | erfa/src/sepp.c erfa/src/rz.c erfa/src/zp.c
|
---|
257 | erfa/src/rxpv.c erfa/src/pn.c erfa/src/cr.c
|
---|
258 | erfa/src/seps.c erfa/src/ry.c erfa/src/pdp.c
|
---|
259 | erfa/src/pnm06a.c erfa/src/hfk5z.c erfa/src/epj2jd.c
|
---|
260 | erfa/src/pv2s.c erfa/src/tf2a.c erfa/src/pm.c
|
---|
261 | erfa/src/sxp.c erfa/src/a2af.c erfa/src/rxp.c
|
---|
262 | erfa/src/pxp.c erfa/src/fk5hip.c erfa/src/fw2m.c
|
---|
263 | erfa/src/rx.c erfa/src/tf2d.c erfa/src/cal2jd.c
|
---|
264 | erfa/src/cp.c erfa/src/nut06a.c erfa/src/rm2v.c
|
---|
265 | erfa/src/nut00a.c erfa/src/ee06a.c erfa/src/fk5hz.c
|
---|
266 | erfa/src/epb2jd.c erfa/src/refco.c erfa/src/a2tf.c
|
---|
267 | erfa/src/fapa03.c erfa/src/gst06a.c erfa/src/faf03.c
|
---|
268 | erfa/src/faur03.c erfa/src/faju03.c erfa/src/fal03.c
|
---|
269 | erfa/src/fasa03.c erfa/src/fame03.c erfa/src/fave03.c
|
---|
270 | erfa/src/fama03.c erfa/src/faom03.c erfa/src/gst06.c
|
---|
271 | erfa/src/jd2cal.c erfa/src/gd2gce.c erfa/src/anp.c
|
---|
272 | erfa/src/fae03.c erfa/src/ir.c erfa/src/pfw06.c
|
---|
273 | erfa/src/bpn2xy.c erfa/src/eors.c erfa/src/s06.c
|
---|
274 | erfa/src/trxp.c erfa/src/era00.c erfa/src/epj.c
|
---|
275 | erfa/src/d2tf.c erfa/src/epb.c erfa/src/rv2m.c
|
---|
276 | erfa/src/pap.c erfa/src/fad03.c erfa/src/pmp.c
|
---|
277 | erfa/src/tr.c erfa/src/falp03.c)
|
---|
278 |
|
---|
279 | # ======================= libDim.so ======================
|
---|
280 | ADD_LIBRARY(Dim SHARED
|
---|
281 | # dim/dim/dic.h
|
---|
282 | # dim/dim/dim_common.h
|
---|
283 | # dim/dim/dim.h
|
---|
284 | # dim/dim/dim_tcpip.h
|
---|
285 | # dim/dim/dis.h
|
---|
286 | dim/src/dic.c
|
---|
287 | dim/src/dis.c
|
---|
288 | dim/src/dna.c
|
---|
289 | dim/src/sll.c
|
---|
290 | dim/src/dll.c
|
---|
291 | dim/src/hash.c
|
---|
292 | dim/src/swap.c
|
---|
293 | dim/src/copy_swap.c
|
---|
294 | dim/src/open_dns.c
|
---|
295 | dim/src/conn_handler.c
|
---|
296 | dim/src/tcpip.c
|
---|
297 | dim/src/dtq.c
|
---|
298 | dim/src/dim_thr.c
|
---|
299 | dim/src/utilities.c)
|
---|
300 |
|
---|
301 | # ================= libDimExtension.so ===================
|
---|
302 | ADD_LIBRARY(DimExtension SHARED
|
---|
303 | # src/DimSetup.h
|
---|
304 | src/DimSetup.cc)
|
---|
305 |
|
---|
306 | # ===================== libDim++.so ======================
|
---|
307 | ADD_LIBRARY(Dim++ SHARED
|
---|
308 | # dim/dim/dic.hxx
|
---|
309 | # dim/dim/dis.hxx
|
---|
310 | # dim/dim/dim_core.hxx
|
---|
311 | # dim/dim/dim.hxx
|
---|
312 | # dim/dim/dim_tcpip.h
|
---|
313 | # dim/dim/dllist.hxx
|
---|
314 | # dim/dim/sllist.hxx
|
---|
315 | # dim/dim/tokenstring.hxx
|
---|
316 | # src/Dim.h
|
---|
317 | dim/src/diccpp.cxx
|
---|
318 | dim/src/dimcpp.cxx
|
---|
319 | dim/src/discpp.cxx
|
---|
320 | dim/src/tokenstring.cxx)
|
---|
321 |
|
---|
322 | # ================= libStateMachine.so ===================
|
---|
323 | ADD_LIBRARY(StateMachine SHARED
|
---|
324 | src/WindowLog.h src/WindowLog.cc
|
---|
325 | src/Readline.h src/Readline.cc
|
---|
326 | src/ReadlineColor.h src/ReadlineColor.cc
|
---|
327 | src/ReadlineWindow.h src/ReadlineWindow.cc
|
---|
328 | src/Console.h src/Console.cc
|
---|
329 | src/Shell.h src/Shell.cc
|
---|
330 | src/EventImp.h src/EventImp.cc
|
---|
331 | src/Event.h src/Event.cc
|
---|
332 | src/State.h src/State.cc
|
---|
333 | src/Description.h src/Description.cc
|
---|
334 | src/MessageImp.h src/MessageImp.cc
|
---|
335 | src/Converter.h src/Converter.cc
|
---|
336 | src/StateMachineImp.h src/StateMachineImp.cc
|
---|
337 | src/StateMachine.h src/StateMachine.cc
|
---|
338 | src/EventDim.h
|
---|
339 | src/MessageDim.h src/MessageDim.cc
|
---|
340 | src/StateMachineDim.h src/StateMachineDim.cc
|
---|
341 | src/DimServerList.h src/DimServerList.cc
|
---|
342 | src/DimServiceInfoList.h src/DimServiceInfoList.cc
|
---|
343 | # src/DimNetworkList.h src/DimNetwork.cc
|
---|
344 | src/ServiceList.h src/ServiceList.cc
|
---|
345 | src/DimErrorRedirecter.h
|
---|
346 | src/DimErrorRedirecter.cc
|
---|
347 | src/DimDescriptionService.h
|
---|
348 | src/DimDescriptionService.cc
|
---|
349 | src/Connection.h src/Connection.cc
|
---|
350 | src/ConnectionUSB.h src/ConnectionUSB.cc
|
---|
351 | src/ConnectionSSL.h src/ConnectionSSL.cc
|
---|
352 | # FACT.h ByteOrder.h
|
---|
353 | src/DimWriteStatistics.h src/DimWriteStatistics.cc)
|
---|
354 | TARGET_LINK_LIBRARIES(StateMachine OpenSSL::SSL)
|
---|
355 |
|
---|
356 | # ================= libConfiguration.so ==================
|
---|
357 | ADD_LIBRARY(Configuration SHARED
|
---|
358 | src/Configuration.h src/Configuration.cc
|
---|
359 | src/FACT.h src/FACT.cc)
|
---|
360 | TARGET_LINK_LIBRARIES(Configuration
|
---|
361 | Boost::regex
|
---|
362 | Boost::system
|
---|
363 | Boost::filesystem
|
---|
364 | Boost::program_options)
|
---|
365 |
|
---|
366 | # ===================== libTime.so =======================
|
---|
367 | ADD_LIBRARY(Time SHARED
|
---|
368 | src/Time.h src/Time.cc)
|
---|
369 | #TARGET_LINK_LIBRARIES(Time)# ${NOVA_LIBRARY})
|
---|
370 |
|
---|
371 | # ===================== libTools.so ======================
|
---|
372 | ADD_LIBRARY(Tools SHARED
|
---|
373 | src/tools.h src/tools.cc)
|
---|
374 |
|
---|
375 |
|
---|
376 |
|
---|
377 | # ********************************************************
|
---|
378 | # ********************** Manuals *************************
|
---|
379 | # ********************************************************
|
---|
380 |
|
---|
381 | FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/man1)
|
---|
382 | FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/html)
|
---|
383 | FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/pdf)
|
---|
384 |
|
---|
385 | MACRO(MANPAGE program description)
|
---|
386 | # https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/
|
---|
387 | ADD_CUSTOM_COMMAND(
|
---|
388 | OUTPUT
|
---|
389 | man1/${program}.1
|
---|
390 | DEPENDS
|
---|
391 | ${program}
|
---|
392 | COMMAND
|
---|
393 | ${HELP2MAN_EXECUTABLE}
|
---|
394 | ${PROJECT_BINARY_DIR}/${program}
|
---|
395 | -n "${description}"
|
---|
396 | --no-info
|
---|
397 | --output=man1/${program}.1
|
---|
398 | COMMAND
|
---|
399 | ${GROFF_EXECUTABLE}
|
---|
400 | -mandoc man1/${program}.1
|
---|
401 | -T html > html/${program}.html
|
---|
402 | COMMAND
|
---|
403 | ${GROFF_EXECUTABLE}
|
---|
404 | -mandoc man1/${program}.1
|
---|
405 | -T pdf > pdf/${program}.pdf
|
---|
406 | COMMENT
|
---|
407 | "Generating man-page ${program}.1"
|
---|
408 | VERBATIM)
|
---|
409 |
|
---|
410 | ADD_CUSTOM_TARGET(${program}.man ALL DEPENDS man1/${program}.1)
|
---|
411 |
|
---|
412 | # INSTALL(FILES ${PROJECT_BINARY_DIR}/${program}.1 DESTINATION "${PKG_MAN}")
|
---|
413 |
|
---|
414 | ENDMACRO()
|
---|
415 |
|
---|
416 |
|
---|
417 |
|
---|
418 |
|
---|
419 | # ********************************************************
|
---|
420 | # *********************** Helpers ************************
|
---|
421 | # ********************************************************
|
---|
422 |
|
---|
423 | SET(HELP++LIBS Tools Configuration Time mysqlpp ${MYSQL_LIBRARIES})
|
---|
424 |
|
---|
425 | # --------------------------------------------------------
|
---|
426 |
|
---|
427 | ADD_EXECUTABLE(fitsdump src/fitsdump.cc)
|
---|
428 | TARGET_LINK_LIBRARIES(fitsdump ${HELP++LIBS} ${ROOT_LIBRARIES} ZLIB::ZLIB)
|
---|
429 | MANPAGE(fitsdump "")
|
---|
430 |
|
---|
431 | #ADD_EXECUTABLE(fitsloader src/fitsloader.cc)
|
---|
432 | #TARGET_LINK_LIBRARIES(fitsloader ${HELP++LIBS})
|
---|
433 | #MANPAGE(fitsloader "")
|
---|
434 |
|
---|
435 | #ADD_EXECUTABLE(fitscheck src/fitscheck.cc)
|
---|
436 | #TARGET_LINK_LIBRARIES(fitscheck ${HELP++LIBS} ZLIB::ZLIB)
|
---|
437 | #MANPAGE(fitscheck "")
|
---|
438 |
|
---|
439 | #ADD_EXECUTABLE(fitsCompressor src/fitsCompressor.cc)
|
---|
440 | #TARGET_LINK_LIBRARIES(fitsCompressor ${HELP++LIBS} ZLIB::ZLIB)
|
---|
441 | #MANPAGE(fitsCompressor "")
|
---|
442 |
|
---|
443 | #ADD_EXECUTABLE(fitsselect src/fitsselect.cc)
|
---|
444 | #TARGET_LINK_LIBRARIES(fitsselect ${HELP++LIBS} ZLIB::ZLIB)
|
---|
445 | #MANPAGE(fitsselect "")
|
---|
446 |
|
---|
447 | ADD_EXECUTABLE(getevent src/getevent.cc)
|
---|
448 | TARGET_LINK_LIBRARIES(getevent ${HELP++LIBS} ZLIB::ZLIB)
|
---|
449 | MANPAGE(getevent "")
|
---|
450 |
|
---|
451 | #ADD_EXECUTABLE(readfits src/readfits.cc)
|
---|
452 | #TARGET_LINK_LIBRARIES(readfits ${HELP++LIBS} ZLIB::ZLIB)
|
---|
453 | #MANPAGE(readfits "")
|
---|
454 |
|
---|
455 | ADD_EXECUTABLE(rootifysql src/rootifysql.cc)
|
---|
456 | TARGET_LINK_LIBRARIES(rootifysql ${HELP++LIBS} ${ROOT_LIBRARIES})
|
---|
457 | MANPAGE(rootifysql "")
|
---|
458 |
|
---|
459 | ADD_EXECUTABLE(root2sql src/root2sql.cc)
|
---|
460 | TARGET_LINK_LIBRARIES(root2sql ${HELP++LIBS} ${ROOT_LIBRARIES})
|
---|
461 | MANPAGE(root2sql "")
|
---|
462 |
|
---|
463 | ADD_EXECUTABLE(calcsource src/calcsource.cc)
|
---|
464 | TARGET_LINK_LIBRARIES(calcsource ${HELP++LIBS} ${ROOT_LIBRARIES} ${NOVA_LIBRARY})
|
---|
465 | MANPAGE(calcsource "")
|
---|
466 |
|
---|
467 | ADD_EXECUTABLE(makeplots src/makeplots.cc)
|
---|
468 | TARGET_LINK_LIBRARIES(makeplots ${HELP++LIBS} ${ROOT_LIBRARIES} ${NOVA_LIBRARY})
|
---|
469 | MANPAGE(makeplots "")
|
---|
470 |
|
---|
471 | ADD_EXECUTABLE(makedata src/makedata.cc)
|
---|
472 | TARGET_LINK_LIBRARIES(makedata ${HELP++LIBS} ${NOVA_LIBRARY})
|
---|
473 | MANPAGE(makedata "")
|
---|
474 |
|
---|
475 | ADD_EXECUTABLE(makeschedule src/makeschedule.cc)
|
---|
476 | TARGET_LINK_LIBRARIES(makeschedule ${HELP++LIBS} ${NOVA_LIBRARY})
|
---|
477 | MANPAGE(makeschedule "")
|
---|
478 |
|
---|
479 | ADD_EXECUTABLE(showlog src/showlog.cc src/WindowLog.cc)
|
---|
480 | TARGET_LINK_LIBRARIES(showlog Threads::Threads ${HELP++LIBS} ${CURSES_LIBRARIES})
|
---|
481 | MANPAGE(showlog "")
|
---|
482 |
|
---|
483 | ADD_EXECUTABLE(zfits src/zfits.cc)
|
---|
484 | TARGET_LINK_LIBRARIES(zfits ${HELP++LIBS} ZLIB::ZLIB)
|
---|
485 | MANPAGE(zfits "")
|
---|
486 |
|
---|
487 |
|
---|
488 |
|
---|
489 | # ********************************************************
|
---|
490 | # ********************* Operation ************************
|
---|
491 | # ********************************************************
|
---|
492 |
|
---|
493 | SET(FACT++LIBS
|
---|
494 | StateMachine Tools Configuration Time Dim++ Dim DimExtension
|
---|
495 | mysqlpp readline ${CURSES_LIBRARIES} panel Boost::thread) # HAVE_SQL
|
---|
496 |
|
---|
497 | # --------------------------------------------------------
|
---|
498 |
|
---|
499 | ADD_EXECUTABLE(dns src/dns.c)
|
---|
500 | TARGET_LINK_LIBRARIES(dns ${FACT++LIBS})
|
---|
501 | MANPAGE(dns "")
|
---|
502 |
|
---|
503 | ADD_EXECUTABLE(agilentctrl src/agilentctrl.cc)
|
---|
504 | TARGET_LINK_LIBRARIES(agilentctrl ${FACT++LIBS})
|
---|
505 | MANPAGE(agilentctrl "")
|
---|
506 |
|
---|
507 | ADD_EXECUTABLE(biasctrl src/biasctrl.cc)
|
---|
508 | TARGET_LINK_LIBRARIES(biasctrl ${FACT++LIBS})
|
---|
509 | MANPAGE(biasctrl "")
|
---|
510 |
|
---|
511 | ADD_EXECUTABLE(biastemp src/biastemp.cc)
|
---|
512 | TARGET_LINK_LIBRARIES(biastemp ${FACT++LIBS})
|
---|
513 | MANPAGE(biastemp "")
|
---|
514 |
|
---|
515 | ADD_EXECUTABLE(chatserv src/chatserv.cc)
|
---|
516 | TARGET_LINK_LIBRARIES(chatserv ${FACT++LIBS}) # does not require libpanel
|
---|
517 | MANPAGE(chatserv "")
|
---|
518 |
|
---|
519 | ADD_EXECUTABLE(chatclient src/chatclient.cc)
|
---|
520 | TARGET_LINK_LIBRARIES(chatclient ${FACT++LIBS}) # does not require libpanel
|
---|
521 | MANPAGE(chatclient "")
|
---|
522 |
|
---|
523 | #ADD_EXECUTABLE(cosyctrl src/cosyctrl.cc)# src/LocalControl.h
|
---|
524 | #TARGET_LINK_LIBRARIES(cosyctrl
|
---|
525 | # StateMachine Tools Configuration Time Dim++ Dim DimExtension
|
---|
526 | # ${Boost_LIBRARIES} readline ${CURSES_LIBRARIES})
|
---|
527 |
|
---|
528 | ADD_EXECUTABLE(datalogger src/datalogger.cc
|
---|
529 | src/DimState.cc
|
---|
530 | src/FitsFile.cc src/Fits.cc)
|
---|
531 | TARGET_LINK_LIBRARIES(datalogger ${FACT++LIBS} cfitsio CCfits)
|
---|
532 | MANPAGE(datalogger "")
|
---|
533 |
|
---|
534 | ADD_EXECUTABLE(dimctrl src/dimctrl.cc
|
---|
535 | src/StateMachineDimControl.cc
|
---|
536 | src/RemoteControl.cc
|
---|
537 | src/InterpreterV8.cc
|
---|
538 | src/DimState.cc)
|
---|
539 | TARGET_LINK_LIBRARIES(dimctrl ${FACT++LIBS} ${NOVA_LIBRARY} Pointing ZLIB::ZLIB v8)
|
---|
540 | MANPAGE(dimctrl "")
|
---|
541 |
|
---|
542 | ADD_CUSTOM_TARGET(dimserver ALL
|
---|
543 | COMMAND ln -sf dimctrl dimserver
|
---|
544 | COMMENT "Creating symlink for dimserver"
|
---|
545 | DEPENDS dimctrl)
|
---|
546 |
|
---|
547 | ADD_EXECUTABLE(drivectrl src/drivectrl.cc)
|
---|
548 | TARGET_LINK_LIBRARIES(drivectrl ${FACT++LIBS} ${NOVA_LIBRARY} Pointing)
|
---|
549 | MANPAGE(drivectrl "")
|
---|
550 |
|
---|
551 | ADD_EXECUTABLE(evtserver src/evtserver.cc)
|
---|
552 | TARGET_LINK_LIBRARIES(evtserver ${FACT++LIBS} ${NOVA_LIBRARY} ZLIB::ZLIB)
|
---|
553 | MANPAGE(evtserver "")
|
---|
554 |
|
---|
555 | ADD_EXECUTABLE(fadctrl src/fadctrl.cc src/HeadersFAD.cc
|
---|
556 | src/EventBuilder.cc
|
---|
557 | src/FitsFile.cc
|
---|
558 | src/DataCalib.cc
|
---|
559 | src/DataWriteRaw.cc
|
---|
560 | src/DataWriteFits.cc
|
---|
561 | src/DataWriteFits2.cc
|
---|
562 | src/DataProcessorImp.cc)
|
---|
563 | TARGET_LINK_LIBRARIES(fadctrl ${FACT++LIBS} cfitsio CCfits ZLIB::ZLIB)
|
---|
564 | MANPAGE(fadctrl "")
|
---|
565 |
|
---|
566 | ADD_EXECUTABLE(feedback src/feedback.cc)
|
---|
567 | TARGET_LINK_LIBRARIES(feedback ${FACT++LIBS})
|
---|
568 | MANPAGE(feedback "")
|
---|
569 |
|
---|
570 | ADD_EXECUTABLE(fscctrl src/fscctrl.cc src/HeadersFTM.cc)
|
---|
571 | TARGET_LINK_LIBRARIES(fscctrl ${FACT++LIBS})
|
---|
572 | MANPAGE(fscctrl "")
|
---|
573 |
|
---|
574 | ADD_EXECUTABLE(ftmctrl src/ftmctrl.cc src/HeadersFTM.cc)
|
---|
575 | TARGET_LINK_LIBRARIES(ftmctrl ${FACT++LIBS})
|
---|
576 | MANPAGE(ftmctrl "")
|
---|
577 |
|
---|
578 | ADD_EXECUTABLE(gcn src/gcn.cc)
|
---|
579 | TARGET_LINK_LIBRARIES(gcn ${FACT++LIBS} ${NOVA_LIBRARY} Qt4::QtXml)
|
---|
580 | MANPAGE(gcn "")
|
---|
581 |
|
---|
582 | ADD_EXECUTABLE(gpsctrl src/gpsctrl.cc)
|
---|
583 | TARGET_LINK_LIBRARIES(gpsctrl ${FACT++LIBS})
|
---|
584 | MANPAGE(gpsctrl "")
|
---|
585 |
|
---|
586 | ADD_EXECUTABLE(lidctrl src/lidctrl.cc)
|
---|
587 | TARGET_LINK_LIBRARIES(lidctrl ${FACT++LIBS} Qt4::QtXml)
|
---|
588 | MANPAGE(lidctrl "")
|
---|
589 |
|
---|
590 | ADD_EXECUTABLE(magiclidar src/magiclidar.cc)
|
---|
591 | TARGET_LINK_LIBRARIES(magiclidar ${FACT++LIBS})
|
---|
592 | MANPAGE(magiclidar "")
|
---|
593 |
|
---|
594 | ADD_EXECUTABLE(magicweather src/magicweather.cc)
|
---|
595 | TARGET_LINK_LIBRARIES(magicweather ${FACT++LIBS})
|
---|
596 | MANPAGE(magicweather "")
|
---|
597 |
|
---|
598 | ADD_EXECUTABLE(mcp src/mcp.cc)
|
---|
599 | TARGET_LINK_LIBRARIES(mcp ${FACT++LIBS})
|
---|
600 | MANPAGE(mcp "")
|
---|
601 |
|
---|
602 | ADD_EXECUTABLE(pfminictrl src/pfminictrl.cc)
|
---|
603 | TARGET_LINK_LIBRARIES(pfminictrl ${FACT++LIBS})
|
---|
604 | MANPAGE(pfminictrl "")
|
---|
605 |
|
---|
606 | ADD_EXECUTABLE(pwrctrl src/pwrctrl.cc src/HeadersPower.cc)
|
---|
607 | TARGET_LINK_LIBRARIES(pwrctrl ${FACT++LIBS} Qt4::QtXml)
|
---|
608 | MANPAGE(pwrctrl "")
|
---|
609 |
|
---|
610 | ADD_EXECUTABLE(rainsensor src/rainsensor.cc)
|
---|
611 | TARGET_LINK_LIBRARIES(rainsensor ${FACT++LIBS})
|
---|
612 | MANPAGE(rainsensor "")
|
---|
613 |
|
---|
614 | ADD_EXECUTABLE(ratecontrol src/ratecontrol.cc)
|
---|
615 | TARGET_LINK_LIBRARIES(ratecontrol ${FACT++LIBS})
|
---|
616 | MANPAGE(ratecontrol "")
|
---|
617 |
|
---|
618 | ADD_EXECUTABLE(ratescan src/ratescan.cc)
|
---|
619 | TARGET_LINK_LIBRARIES(ratescan ${FACT++LIBS})
|
---|
620 | MANPAGE(ratescan "")
|
---|
621 |
|
---|
622 | #ADD_EXECUTABLE(scheduler src/scheduler.cc)
|
---|
623 | #TARGET_LINK_LIBRARIES(scheduler ${FACT++LIBS})
|
---|
624 | #MANPAGE(scheduler "")
|
---|
625 |
|
---|
626 | #ADD_EXECUTABLE(skypeclient src/skypeclient.cc)
|
---|
627 | #TARGET_LINK_LIBRARIES(skypeclient ${FACT++LIBS})
|
---|
628 | #MANPAGE(skypeclient "")
|
---|
629 |
|
---|
630 | ADD_EXECUTABLE(sqmctrl src/sqmctrl.cc)
|
---|
631 | TARGET_LINK_LIBRARIES(sqmctrl ${FACT++LIBS})
|
---|
632 | MANPAGE(sqmctrl "")
|
---|
633 |
|
---|
634 | ADD_EXECUTABLE(smartfact src/smartfact.cc)
|
---|
635 | TARGET_LINK_LIBRARIES(smartfact ${FACT++LIBS} ${NOVA_LIBRARY}) # HAVE_NOVA
|
---|
636 | MANPAGE(smartfact "")
|
---|
637 |
|
---|
638 | ADD_EXECUTABLE(temperature src/temperature.cc)
|
---|
639 | TARGET_LINK_LIBRARIES(temperature ${FACT++LIBS})
|
---|
640 | MANPAGE(temperature "")
|
---|
641 |
|
---|
642 | ADD_EXECUTABLE(timecheck src/timecheck.cc)
|
---|
643 | TARGET_LINK_LIBRARIES(timecheck ${FACT++LIBS})
|
---|
644 | MANPAGE(timecheck "")
|
---|
645 |
|
---|
646 | ADD_EXECUTABLE(tngweather src/tngweather.cc)
|
---|
647 | TARGET_LINK_LIBRARIES(tngweather ${FACT++LIBS} Qt4::QtXml)
|
---|
648 | MANPAGE(tngweather "")
|
---|
649 |
|
---|
650 | #ADD_EXECUTABLE(triggerschedule src/triggerschedule.cc)
|
---|
651 | #TARGET_LINK_LIBRARIES(triggerschedule ${FACT++LIBS})
|
---|
652 | #MANPAGE(triggerschedule "")
|
---|
653 |
|
---|
654 |
|
---|
655 |
|
---|
656 | # ********************************************************
|
---|
657 | # ****************** GUI Applications ********************
|
---|
658 | # ********************************************************
|
---|
659 |
|
---|
660 | INCLUDE_DIRECTORIES(/usr/include/qwt-qt4 gui gui/RawEventsViewer)
|
---|
661 | FILE(WRITE ${CMAKE_BINARY_DIR}/design.h "#include \"ui_design.h\"")
|
---|
662 | FILE(WRITE ${CMAKE_BINARY_DIR}/viewer.h "#include \"ui_viewer.h\"")
|
---|
663 |
|
---|
664 | # --------------------------------------------------------
|
---|
665 |
|
---|
666 | QT4_WRAP_UI(VIEWER_QT_HEADERS gui/RawEventsViewer/viewer.ui)
|
---|
667 |
|
---|
668 | QT4_WRAP_CPP(VIEWER_QT_SOURCES
|
---|
669 | gui/RawEventsViewer/RawEventsViewer.h
|
---|
670 | gui/BasicGlCamera.h
|
---|
671 | gui/QCameraWidget.h
|
---|
672 | gui/Q3DCameraWidget.h)
|
---|
673 |
|
---|
674 | ADD_EXECUTABLE(viewer
|
---|
675 | gui/RawEventsViewer/RawEventsViewer.cc
|
---|
676 | gui/BasicGlCamera.cc
|
---|
677 | gui/QCameraWidget.cc
|
---|
678 | gui/Q3DCameraWidget.cc
|
---|
679 | ${VIEWER_QT_HEADERS}
|
---|
680 | ${VIEWER_QT_SOURCES})
|
---|
681 |
|
---|
682 | TARGET_LINK_LIBRARIES(viewer
|
---|
683 | ${Boost_LIBRARIES} Configuration mysqlpp
|
---|
684 | Qt4::QtGui Qt4::QtOpenGL
|
---|
685 | ${OPENGL_LIBRARIES} # OpenGL::GL OpenGL::GLU
|
---|
686 | qwt-qt4 ZLIB::ZLIB)
|
---|
687 |
|
---|
688 | # --------------------------------------------------------
|
---|
689 |
|
---|
690 | QT4_ADD_RESOURCES(FACT_QT_RESOURCES gui/design.qrc)
|
---|
691 |
|
---|
692 | QT4_WRAP_UI(FACT_QT_HEADERS gui/design.ui)
|
---|
693 |
|
---|
694 | QT4_WRAP_CPP(FACT_QT_SOURCES
|
---|
695 | gui/DockWindow.h
|
---|
696 | gui/MainWindow.h
|
---|
697 | gui/QCameraWidget.h
|
---|
698 | gui/BasicGlCamera.h)
|
---|
699 |
|
---|
700 | ADD_EXECUTABLE(fact gui/fact.cc
|
---|
701 | gui/DockWindow.cc
|
---|
702 | gui/MainWindow.cc
|
---|
703 | gui/QCameraWidget.cc
|
---|
704 | gui/BasicGlCamera.cc
|
---|
705 | gui/HtmlDelegate.cc
|
---|
706 | gui/CheckBoxDelegate.cc
|
---|
707 | src/DimNetwork.cc
|
---|
708 | ${FACT_QT_HEADERS}
|
---|
709 | ${FACT_QT_SOURCES}
|
---|
710 | ${FACT_QT_RESOURCES})
|
---|
711 |
|
---|
712 | TARGET_LINK_LIBRARIES(fact
|
---|
713 | ${FACT++LIBS}
|
---|
714 | ${ROOT_LIBRARIES}
|
---|
715 | Qt4::QtGui Qt4::QtOpenGL Qt4::QtSql
|
---|
716 | ${OPENGL_LIBRARIES} # OpenGL::GL OpenGL::GLU
|
---|
717 | qwt-qt4 ZLIB::ZLIB)
|
---|
718 |
|
---|
719 |
|
---|
720 | #dclient5_SOURCES = src/dclient5.cc src/LocalControl.h
|
---|
721 | #dclient5_LDADD = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la \
|
---|
722 | # libConfiguration.la
|
---|
723 |
|
---|
724 | #argv_SOURCES = src/argv.cc
|
---|
725 | #argv_LDADD = libConfiguration.la
|
---|
726 |
|
---|
727 | #time_SOURCES = src/time.cc
|
---|
728 | #time_LDADD = libTime.la
|
---|
729 |
|
---|
730 | #test_SOURCES = src/test.cc
|
---|
731 | #test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
|
---|
732 |
|
---|
733 |
|
---|
734 |
|
---|
735 |
|
---|
736 | # ********************************************************
|
---|
737 | # ********************** FAMOUS **************************
|
---|
738 | # ********************************************************
|
---|
739 |
|
---|
740 | IF(FOUND_FAMOUS)
|
---|
741 | INCLUDE_DIRECTORIES(famous/ui)
|
---|
742 | INCLUDE_DIRECTORIES(famous/src)
|
---|
743 |
|
---|
744 | ADD_EXECUTABLE(famousbias famous/src/biasctrl.cc)
|
---|
745 | TARGET_LINK_LIBRARIES(famousbias ${FACT++LIBS})
|
---|
746 | MANPAGE(famousbias "")
|
---|
747 |
|
---|
748 | ADD_EXECUTABLE(famousui famous/ui/famousui.cc)
|
---|
749 | TARGET_LINK_LIBRARIES(famousui ${FACT++LIBS})
|
---|
750 | MANPAGE(famousui "")
|
---|
751 |
|
---|
752 | ADD_EXECUTABLE(ftuctrl famous/src/ftuctrl.cc)
|
---|
753 | TARGET_LINK_LIBRARIES(ftuctrl ${FACT++LIBS})
|
---|
754 | MANPAGE(ftuctrl "")
|
---|
755 |
|
---|
756 | ADD_EXECUTABLE(miniftmctrl famous/src/miniftmctrl.cc)
|
---|
757 | TARGET_LINK_LIBRARIES(miniftmctrl ${FACT++LIBS})
|
---|
758 | MANPAGE(miniftmctrl "")
|
---|
759 |
|
---|
760 | ADD_EXECUTABLE(fpgaftmctrl famous/src/fpgaftmctrl.cc)
|
---|
761 | TARGET_LINK_LIBRARIES(fpgaftmctrl ${FACT++LIBS})
|
---|
762 | MANPAGE(fpgaftmctrl "")
|
---|
763 |
|
---|
764 | ADD_EXECUTABLE(famousrate famous/src/ratecontrol.cc)
|
---|
765 | TARGET_LINK_LIBRARIES(famousrate ${FACT++LIBS})
|
---|
766 | MANPAGE(famousrate "")
|
---|
767 | ENDIF()
|
---|
768 |
|
---|
769 |
|
---|
770 |
|
---|
771 | # ********************************************************
|
---|
772 | # ********************** IceACT **************************
|
---|
773 | # ********************************************************
|
---|
774 |
|
---|
775 | IF(FOUND_ICEACT)
|
---|
776 | ADD_EXECUTABLE(iceactpsu iceact/src/psuctrl.cc)
|
---|
777 | TARGET_LINK_LIBRARIES(iceactpsu ${FACT++LIBS})
|
---|
778 | MANPAGE(iceactpsu "")
|
---|
779 |
|
---|
780 | ADD_EXECUTABLE(tmonctrl iceact/src/tmonctrl.cc)
|
---|
781 | TARGET_LINK_LIBRARIES(tmonctrl ${FACT++LIBS})
|
---|
782 | MANPAGE(tmonctrl "")
|
---|
783 | ENDIF()
|
---|
784 |
|
---|