Moved install rule out of test section in CMakeLists.txt