added minimal CMake support (SIM mode)