Updated CMakeLists.txt and common.cmake to include CPack, CTest, and C++11 compiler options.