updated CMake scripts for better MediTEC compatibility
fixed CMake scripts