Move the CMAKE_CXX_FLAGS to the root CMakeLists
Add test directory in the build. Add to find Lapack libraries. Needs to be statically linked.