mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 04:00:34 +00:00
Build OpenCL block only if enabled with -DENABLE_OPENCL=ON
This commit is contained in:
parent
c79b8ea4f3
commit
4ec498514c
@ -76,7 +76,7 @@ if(ENABLE_FPGA)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(OPENCL_FOUND)
|
||||
if(ENABLE_OPENCL)
|
||||
set(ACQ_ADAPTER_SOURCES
|
||||
${ACQ_ADAPTER_SOURCES}
|
||||
gps_l1_ca_pcps_opencl_acquisition.cc
|
||||
|
@ -44,7 +44,7 @@ if(ENABLE_FPGA)
|
||||
set(ACQ_GR_BLOCKS_HEADERS ${ACQ_GR_BLOCKS_HEADERS} pcps_acquisition_fpga.h)
|
||||
endif()
|
||||
|
||||
if(OPENCL_FOUND)
|
||||
if(ENABLE_OPENCL)
|
||||
set(ACQ_GR_BLOCKS_SOURCES ${ACQ_GR_BLOCKS_SOURCES} pcps_opencl_acquisition_cc.cc)
|
||||
set(ACQ_GR_BLOCKS_HEADERS ${ACQ_GR_BLOCKS_HEADERS} pcps_opencl_acquisition_cc.h)
|
||||
endif()
|
||||
@ -97,7 +97,7 @@ if(CMAKE_BUILD_TYPE MATCHES Rel)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(OPENCL_FOUND)
|
||||
if(ENABLE_OPENCL)
|
||||
target_link_libraries(acquisition_gr_blocks PUBLIC OpenCL::OpenCL)
|
||||
target_include_directories(acquisition_gr_blocks
|
||||
PUBLIC
|
||||
|
@ -67,7 +67,7 @@ set(GNSS_SPLIBS_HEADERS
|
||||
geofunctions.h
|
||||
)
|
||||
|
||||
if(OPENCL_FOUND)
|
||||
if(ENABLE_OPENCL)
|
||||
set(GNSS_SPLIBS_SOURCES ${GNSS_SPLIBS_SOURCES}
|
||||
opencl/fft_execute.cc # Needs OpenCL
|
||||
opencl/fft_setup.cc # Needs OpenCL
|
||||
|
@ -109,7 +109,7 @@ if(ENABLE_FLEXIBAND)
|
||||
target_compile_definitions(core_receiver PRIVATE -DFLEXIBAND_DRIVER=1)
|
||||
endif()
|
||||
|
||||
if(OPENCL_FOUND)
|
||||
if(ENABLE_OPENCL)
|
||||
message(STATUS "Adding processing blocks implemented using OpenCL")
|
||||
target_link_libraries(core_receiver PUBLIC algorithms_libs OpenCL::OpenCL)
|
||||
target_compile_definitions(core_receiver PRIVATE -DOPENCL_BLOCKS=1)
|
||||
|
@ -149,7 +149,7 @@ if(OPENSSL_FOUND)
|
||||
add_definitions(-DUSE_OPENSSL_FALLBACK=1)
|
||||
endif()
|
||||
|
||||
if(OPENCL_FOUND)
|
||||
if(ENABLE_OPENCL)
|
||||
add_definitions(-DOPENCL_BLOCKS_TEST=1)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user