FIND_PATH(NVCTRL_INCLUDE_DIR NVCtrl/NVCtrl.h)
FIND_LIBRARY(NVCTRL_LIBRARIES NAMES XNVCtrl)
if(NVCTRL_LIBRARIES AND NVCTRL_INCLUDE_DIR)
  set(NVCTRL_FOUND TRUE)
endif(NVCTRL_LIBRARIES AND NVCTRL_INCLUDE_DIR)
mark_as_advanced(NVCTRL_INCLUDE_DIR NVCTRL_LIBRARIES)
