migrated to CMake and added libobj