File tree Expand file tree Collapse file tree 3 files changed +476
-0
lines changed
Expand file tree Collapse file tree 3 files changed +476
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ else(APPLE)
55 set (CORE_EXTRA_SRCS "" )
66endif (APPLE )
77
8+ if (NOT DEFINED WITHOUT_SUPERTIMESTREAM)
9+ set (WITHOUT_SUPERTIMESTREAM FALSE CACHE BOOL "Build G3SuperTimestream class" )
10+ endif ()
11+ if (NOT WITHOUT_SUPERTIMESTREAM)
12+ set (CORE_EXTRA_SRCS ${CORE_EXTRA_SRCS} src/G3SuperTimestream.cxx)
13+ endif ()
14+
815add_spt3g_library (core SHARED
916 src/G3Logging.cxx src/G3PrintfLogger.cxx src/G3SyslogLogger.cxx
1017 src/crc32.c src/G3Frame.cxx src/G3Data.cxx src/G3TimeStamp.cxx
@@ -40,6 +47,13 @@ if(FLAC_FOUND)
4047 target_link_libraries (core PRIVATE FLAC::FLAC )
4148endif ()
4249
50+ if (NOT WITHOUT_SUPERTIMESTREAM)
51+ find_package (OpenMP QUIET )
52+ if (OpenMP_FOUND)
53+ target_link_libraries (core PRIVATE OpenMP::OpenMP_CXX )
54+ endif ()
55+ endif ()
56+
4357# Link against Z library
4458if (NOT DEFINED WITH_ZLIB)
4559 set (WITH_ZLIB TRUE CACHE BOOL "Enable gzip fie compression" )
You can’t perform that action at this time.
0 commit comments