Dependencies in non-standard locations


#1

Some small additions to the CMakeLists.txt file will improve the build portability. For example, if an updated version of flex is installed in /usr/local/flex, so as not to overwrite the installed system version, this can be found by the cmake find_package(FLEX required) command, but the relevant include and lib directories will not be used without the additional lines:

include_directories(${FLEX_INCLUDE_DIRS}) 
link_directories(${FLEX_LIBRARY_DIRS}) 

I am sure this is not the only package to which this applies, but it is the one that bit us.