The add_library has to come after the hierarchy files.