|
|
@ -32,6 +32,7 @@ if( WITH_NVCONTROL )
|
|
|
|
|
|
|
|
|
|
|
|
find_path( NVCONTROL_INCLUDE_DIR NAMES "NVCtrlLib.h" PATH_SUFFIXES "NVCtrl" )
|
|
|
|
find_path( NVCONTROL_INCLUDE_DIR NAMES "NVCtrlLib.h" PATH_SUFFIXES "NVCtrl" )
|
|
|
|
find_library( NVCONTROL_LIBRARIES NAMES XNVCtrl )
|
|
|
|
find_library( NVCONTROL_LIBRARIES NAMES XNVCtrl )
|
|
|
|
|
|
|
|
pkg_search_module( XEXT xext )
|
|
|
|
|
|
|
|
|
|
|
|
if( NVCONTROL_LIBRARIES AND NVCONTROL_INCLUDE_DIR )
|
|
|
|
if( NVCONTROL_LIBRARIES AND NVCONTROL_INCLUDE_DIR )
|
|
|
|
set( NVCONTROL_FOUND true)
|
|
|
|
set( NVCONTROL_FOUND true)
|
|
|
@ -42,4 +43,5 @@ if( WITH_NVCONTROL )
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
tde_message_fatal( "NVidia support has been requested but <NVCtrlLib.h> or libXNVCtrl were not found on your system" )
|
|
|
|
tde_message_fatal( "NVidia support has been requested but <NVCtrlLib.h> or libXNVCtrl were not found on your system" )
|
|
|
|
endif( NVCONTROL_FOUND )
|
|
|
|
endif( NVCONTROL_FOUND )
|
|
|
|
|
|
|
|
|
|
|
|
endif( WITH_NVCONTROL )
|
|
|
|
endif( WITH_NVCONTROL )
|
|
|
|