Reconstruction of cmake

Now cmake will generate multiple executable target