Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Line(s) | |||||
133 | ### Options ###################################### | 133 | ### Options ###################################### | ||
134 | option(ENABLE_CANTOR "Build with Cantor support" ON) | 134 | option(ENABLE_CANTOR "Build with Cantor support" ON) | ||
135 | option(ENABLE_FFTW "Build with FFTW support" ON) | 135 | option(ENABLE_FFTW "Build with FFTW support" ON) | ||
136 | option(ENABLE_HDF5 "Build with HDF5 support" ON) | 136 | option(ENABLE_HDF5 "Build with HDF5 support" ON) | ||
137 | option(ENABLE_NETCDF "Build with NetCDF support" ON) | 137 | option(ENABLE_NETCDF "Build with NetCDF support" ON) | ||
138 | option(ENABLE_FITS "Build with FITS support" ON) | 138 | option(ENABLE_FITS "Build with FITS support" ON) | ||
139 | option(ENABLE_LIBCERF "Build with libcerf support" ON) | 139 | option(ENABLE_LIBCERF "Build with libcerf support" ON) | ||
140 | option(ENABLE_LIBORIGIN "Build with liborigin support" ON) | 140 | option(ENABLE_LIBORIGIN "Build with liborigin support" ON) | ||
141 | option(ENABLE_ROOT "Build with ROOT (CERN) support" ON) | ||||
141 | option(ENABLE_TESTS "Build with tests" ON) | 142 | option(ENABLE_TESTS "Build with tests" ON) | ||
142 | 143 | | |||
143 | ### OS macros #################################### | 144 | ### OS macros #################################### | ||
144 | IF (WIN32) | 145 | IF (WIN32) | ||
145 | add_definitions (-DHAVE_WINDOWS) | 146 | add_definitions (-DHAVE_WINDOWS) | ||
146 | ENDIF () | 147 | ENDIF () | ||
147 | 148 | | |||
148 | ### GSL (required) ############################### | 149 | ### GSL (required) ############################### | ||
▲ Show 20 Lines • Show All 152 Lines • ▼ Show 20 Line(s) | 300 | IF (LIBCERF_FOUND) | |||
301 | add_definitions (-DHAVE_LIBCERF) | 302 | add_definitions (-DHAVE_LIBCERF) | ||
302 | ELSE () | 303 | ELSE () | ||
303 | MESSAGE (STATUS "libcerf Library not found.") | 304 | MESSAGE (STATUS "libcerf Library not found.") | ||
304 | ENDIF () | 305 | ENDIF () | ||
305 | ELSE () | 306 | ELSE () | ||
306 | MESSAGE (STATUS "libcerf Library DISABLED.") | 307 | MESSAGE (STATUS "libcerf Library DISABLED.") | ||
307 | ENDIF () | 308 | ENDIF () | ||
308 | 309 | | |||
310 | IF (ENABLE_ROOT) | ||||
311 | FIND_PACKAGE(ZLIB) | ||||
312 | FIND_LIBRARY(LZ4_LIBRARY lz4 | ||||
313 | PATHS | ||||
314 | /usr/lib | ||||
315 | /usr/local/lib | ||||
316 | ) | ||||
317 | FIND_PATH (LZ4_INCLUDE_DIR lz4.h | ||||
318 | /usr/include | ||||
319 | /usr/local/include | ||||
320 | ) | ||||
321 | IF (LZ4_LIBRARY AND LZ4_INCLUDE_DIR) | ||||
322 | SET (LZ4_FOUND TRUE) | ||||
323 | MESSAGE (STATUS "Found LZ4 library: ${LZ4_INCLUDE_DIR} ${LZ4_LIBRARY}") | ||||
324 | ELSE () | ||||
325 | SET (LZ4_FOUND FALSE) | ||||
326 | ENDIF () | ||||
327 | IF (ZLIB_FOUND AND LZ4_FOUND) | ||||
328 | add_definitions (-DHAVE_ZIP) | ||||
329 | ELSE () | ||||
330 | MESSAGE (STATUS "ZIP libraries not found.") | ||||
331 | ENDIF () | ||||
332 | ELSE () | ||||
333 | MESSAGE (STATUS "ROOT (CERN) importer DISABLED.") | ||||
334 | ENDIF () | ||||
335 | | ||||
309 | ################################################# | 336 | ################################################# | ||
310 | FIND_PATH (XLOCALE_INCLUDE_DIR xlocale.h | 337 | FIND_PATH (XLOCALE_INCLUDE_DIR xlocale.h | ||
311 | /usr/include | 338 | /usr/include | ||
312 | /usr/local/include | 339 | /usr/local/include | ||
313 | ) | 340 | ) | ||
314 | IF (XLOCALE_INCLUDE_DIR) | 341 | IF (XLOCALE_INCLUDE_DIR) | ||
315 | add_definitions (-DHAVE_XLOCALE) | 342 | add_definitions (-DHAVE_XLOCALE) | ||
316 | include_directories (${XLOCALE_INCLUDE_DIR}) | 343 | include_directories (${XLOCALE_INCLUDE_DIR}) | ||
Show All 18 Lines |