mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-27 18:21:30 +01:00
35 lines
831 B
CMake
35 lines
831 B
CMake
# Include directories and libraries
|
|
include_directories(
|
|
../../../Common
|
|
../../../Common/UtilNPP
|
|
)
|
|
|
|
# Source file
|
|
set(SRC_FILES
|
|
histEqualizationNPP.cpp
|
|
)
|
|
|
|
find_package(FreeImage)
|
|
|
|
if(${FreeImage_FOUND})
|
|
# Add target for histEqualizationNPP
|
|
add_executable(histEqualizationNPP ${SRC_FILES})
|
|
set_target_properties(histEqualizationNPP PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|
|
|
|
target_include_directories(histEqualizationNPP PRIVATE
|
|
${CUDAToolkit_INCLUDE_DIRS}
|
|
${FreeImage_INCLUDE_DIRS}
|
|
)
|
|
|
|
target_link_libraries(histEqualizationNPP PRIVATE
|
|
CUDA::nppc
|
|
CUDA::nppisu
|
|
CUDA::nppist
|
|
CUDA::nppicc
|
|
CUDA::cudart
|
|
${FreeImage_LIBRARIES}
|
|
)
|
|
else()
|
|
message(STATUS "FreeImage not found - will not build sample 'histEqualizationNPP'")
|
|
endif()
|