Cleaned up the CMakelists.txt file to automatically find added headers and sources for the C wrappers.