modified CMakeLists.txt to make it work with the new export method