looking-glass/c-host/platform/Windows/capture/CMakeLists.txt

30 lines
668 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.0)
project(capture LANGUAGES C)
include(PreCapture)
option(USE_NVFBC "Enable NVFBC Support" OFF)
option(USE_DXGI "Enable DXGI Support" ON)
2019-04-10 03:07:42 +00:00
if(NOT DEFINED NVFBC_SDK)
set(NVFBC_SDK "C:\\Program Files (x86)\\NVIDIA Corporation\\NVIDIA Capture SDK")
endif()
if(NOT EXISTS "${NVFBC_SDK}\\inc" OR NOT IS_DIRECTORY "${NVFBC_SDK}\\inc")
message("Disabling NVFBC support, can't find the SDK headers")
set(USE_NVFBC OFF)
2019-04-10 03:07:42 +00:00
endif()
if(USE_NVFBC)
add_capture("NVFBC")
endif()
if(USE_DXGI)
add_capture("DXGI")
endif()
include("PostCapture")
add_library(capture STATIC ${CAPTURE_C})
target_link_libraries(capture ${CAPTURE_LINK})