Allow project to be built via add_subdirectory()
Fixed the linking order
Merge pull request #4 from breese/master

Allow project to be built via add_subdirectory()