stricaud/faup — pull request #6 by sim0nx (2013-01-02 17:58:28+00:00)
Title: fix build issues

Without the following patch, I am unable to build the project.
The first error is:
$ make
Scanning dependencies of target faup_static
[ 11%] Building C object src/lib/CMakeFiles/faup_static.dir/decode.c.o
In file included from /home/georges/Projects/faup/src/lib/decode.c:18:
/home/georges/Projects/faup/src/lib/include/faup/faup.h:24:26: error: faup/version.h: No such file or directory
make[2]: *** [src/lib/CMakeFiles/faup_static.dir/decode.c.o] Error 1
make[1]: *** [src/lib/CMakeFiles/faup_static.dir/all] Error 2
make: *** [all] Error 2

which is fixed by line41 of file CMakeLists.txt

The next error occurs when building the cli tool faup when linking to the library.
The cmake variable FAUP_LIBRARY is set to "${faup-project_SOURCE_DIR}/src/lib/libfaupl.so", while the library is actually located at:
"${faup-project_BINARY_DIR}/src/lib/libfaupl.so"