The convention for libraries is X_LIBRARIES, with the variable containing full paths and so eliminating the need for a LIBRARY_DIR variable.