update cmake structure

try something similar to gtest