Organize test/CMakeLists.txt