Fix headers to be installed in some CMakeLists.txt.
[CMake] Fix conditionals and call for refinedp1test.